home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_conf1.arc / C next >
Encoding:
Text File  |  1990-07-10  |  542.2 KB  |  12,774 lines

  1.  
  2.  
  3. P to pause, S to cancel output
  4. ------------------------------
  5.  
  6. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23T50397 Date: 03/24/89
  7. From: PAT SHEA                                              Time: 05:06 am
  8.   To: ALL                                                   (Read 605 times)
  9. Subj: NEW CONF !!!
  10.  
  11. 'begaud !!!! I think I've found a new conference w/ no messages in it.  I
  12. feel like a little kid finding a fresh-placed sidewalk.  'spose I should
  13. say something 'bout C - try compiling this and the folloing mssg ....
  14.  
  15. #include <dos.h>
  16. #include <stdio.h>
  17. #include <string.h>
  18. #include <stdlib.h>
  19.  
  20. struct moon {
  21.    int month;
  22.    int day;
  23. };
  24.  
  25. /* the following array is the one that has all the good stuff in it */
  26.  
  27. static struct moon m_cycle[19] = {
  28.    { 4, 14 }, { 4,  3 }, { 3, 23 }, { 4, 11 }, { 3, 31 }, { 4, 18 },
  29.    { 4,  8 }, { 3, 28 }, { 4, 16 }, { 4,  5 }, { 3, 25 }, { 4, 13 },
  30.    { 4,  2 }, { 3, 22 }, { 4, 10 }, { 3, 30 }, { 4, 17 }, { 4,  7 },
  31.    { 3, 27 }
  32. };
  33.  
  34. extern void bail_out( void );
  35. extern int  dmy2dow( int day, int mon, int year );
  36. extern long dmy2jul( int da, int mo, int yr );
  37. extern char *jul2str( long int jul_days );
  38. extern void main( int argc, char **argv );
  39. extern char *make_str( int da, int mo, int yr );
  40. extern long moon_magic( int year );
  41. extern char *str_comm( char *numb );
  42.  
  43. void main( int argc, char **argv )
  44. {
  45.    int t_year;
  46.    long int j_today, j_easter;
  47.    union REGS in, out;
  48.  
  49.    if ( argc != 2 ) {
  50.       bail_out();
  51.    }
  52.    t_year = atoi( argv[1] );
  53.    if ( t_year < 1753 || t_year > 6753 ) {
  54.       bail_out();
  55.    }
  56.    in.h.ah = 0x2a;
  57.    (void) intdos( &in, &out );
  58.    j_today = dmy2jul( (int) out.h.dl, (int) out.h.dh, (int) out.x.cx );
  59.    fprintf( stdout, "\n\tFor the year %s\n\n", str_comm( argv[1] ));
  60.    j_easter = moon_magic( t_year );
  61.    fprintf( stdout, "\t\tASH WEDNESDAY %s.... %s\n",
  62.             ( j_today > j_easter - 46 ) ? "was" : "is",
  63.             jul2str( j_easter - 46 ));
  64.    fprintf( stdout, "\t\tPALM SUNDAY %s....   %s\n",
  65.             ( j_today > j_easter - 7 ) ? "was" : "is",
  66.             jul2str( j_easter - 7 ));
  67.    fprintf( stdout, "\t\tand EASTER %s....    %s\n\n",
  68.             ( j_today > j_easter ) ? "was" : "is",
  69.             jul2str( j_easter ));
  70.    exit( 0 );
  71. }
  72.  
  73.  
  74. /***********************************************************************
  75.  *
  76.  *          int  dmy2dow( int iDay, int iMon, int iYear ) - This is my
  77.  *             implementation of the Zeller function.  It takes day/
  78.  *             month/year and returns the day of the week as an int
  79.  *             with Sunday being 0.....etc.
  80.  *
  81.  *
  82.  ******/
  83. /*
  84. int dmy2dow( int iDay, int iMon, int iYear )
  85. {
  86.    int iAdj_mo, iAdj_yr, iCent, iCent_yrs;
  87.  
  88.    iAdj_mo = ( iMon > 2 ) ? iMon - 2 : iMon + 10;
  89.    iAdj_yr = ( iMon > 2 ) ? iYear : iYear - 1;
  90.    iCent = iAdj_yr / 100;
  91.    iCent_yrs = iAdj_yr % 100;
  92.    return((((( 13 * iAdj_mo - 1 ) / 5 ) + iDay + iCent_yrs +
  93.              ( iCent_yrs / 4 ) + ( iCent / 4 ) - 2 * iCent + 77 ) % 7 ));
  94. } */
  95. int dmy2dow( int day, int mon, int year )
  96. {
  97.    int adj_mo, adj_yr, cent, cent_yrs;
  98.  
  99.    adj_mo = ( mon > 2 ) ? mon - 2 : mon + 10;
  100.    adj_yr = ( mon > 2 ) ? year    : year - 1;
  101.    cent = adj_yr / 100;
  102.    cent_yrs = adj_yr % 100;
  103.    return((((( 13 * adj_mo - 1 ) / 5 ) + day + cent_yrs +
  104.              ( cent_yrs / 4 ) + ( cent / 4 ) - 2 * cent + 77 ) % 7 ));
  105. }
  106.  
  107. <cont'd next mssg>
  108. ---------------
  109. Following thread
  110.  
  111. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23T50726 Date: 03/24/89
  112. From: PAT SHEA                                              Time: 05:12 am
  113.   To: ALL                                                   (Read 440 times)
  114. Subj: NEW CONF !!!
  115.  
  116. <cont'd from 23T50397>
  117.  
  118. long int dmy2jul( int da, int mo, int yr )
  119. {
  120.    long int worker;
  121.  
  122.    worker = ( (long) yr * 12L + (long) mo - 3 ) / 12L;
  123.    return((( 4404L * (long) yr + 367L * (long) mo - 1094L ) / 12L ) -
  124.           ( 2L * worker ) + ( worker / 4L ) - ( worker / 100L ) +
  125.           ( worker / 400L ) + ( (long) da ) + 1721119L );
  126. }
  127.  
  128. char *jul2str( long int jul_days )
  129. {
  130.    int da_no, mo_no, yr_no;
  131.    long int cent;
  132.  
  133.    jul_days -= 1721119L;
  134.    cent = ( jul_days * 100L - 20L ) / 3652425L;
  135.    jul_days += ( cent - cent / 4L );
  136.    yr_no = (int) (( jul_days * 100L - 20 ) / 36525L );
  137.    jul_days -= (( 36525L * (long) yr_no ) / 100L );
  138.    mo_no = (int) (( jul_days * 10L - 5L ) / 306L );
  139.    da_no = (int) (( jul_days * 10L - 306L * (long) mo_no + 5L ) / 10L );
  140.    if ( mo_no <= 9 ) {
  141.       mo_no += 3;
  142.    }
  143.    else {
  144.       yr_no++;
  145.       mo_no -= 9;
  146.    }
  147.    return( make_str( da_no, mo_no, yr_no ));
  148. }
  149.  
  150. char *make_str( int d, int m, int y )
  151. {
  152.    static char *da_str[] = {
  153.          "Sunday", "Monday", "Tuesday", "Wednesday",
  154.          "Thursday", "Friday", "Saturday"
  155.       };
  156.    static char *mo_str[] = {
  157.          "January", "February", "March", "April", "May", "June", "July",
  158.          "August", "September", "October", "November", "December"
  159.       };
  160.    char worker[64], int_str[8];
  161.    int day_numb;
  162.  
  163.    day_numb = dmy2dow( d, m, y );
  164.    strcpy( worker, da_str[day_numb] );
  165.    strcat( worker, ":  " );
  166.    strcat( worker, itoa( d, int_str, 10 ));
  167.    strcat( worker, " " );
  168.    strcat( worker, mo_str[m - 1] );
  169. /* strcat( worker, ", " );
  170.    strcat( worker, itoa( y, int_str, 10 ));    */
  171.    return( worker );
  172. }
  173.  
  174. long int moon_magic( int year )
  175. {
  176.    int index, p_dow;
  177.    long int p_date;
  178.  
  179.    index = year % 19;
  180.    p_dow = dmy2dow( m_cycle[index].day, m_cycle[index].month, year );
  181.    p_date = dmy2jul( m_cycle[index].day, m_cycle[index].month, year );
  182.    return(( (long) ( 7 - p_dow )) + p_date );
  183. }
  184.  
  185. char *str_comm( char *numb )
  186. {
  187.    register char *end, *start;
  188.    static char worker[16];
  189.  
  190.    strcpy( worker, numb );
  191.    start = strpbrk( worker, "0123456789" );
  192.    if (( start != NULL ) && ( *( start - 1 ) != '.' ))  {
  193.       end = start + strspn( start, "0123456789" );
  194.       while (( end -= 3 ) > start ) {
  195.          (void) memmove( ( end + 1 ), end, ( strlen( end ) + 1 ));
  196.          *end = ',';
  197.       }
  198.    }
  199.    return( worker );
  200. }
  201.  
  202. void bail_out()
  203. {
  204.    fprintf( stderr, "\n\tSYNTAX:  easter <year>\n" );
  205.    fprintf( stderr, "\t\t where the <year> is any\n" );
  206.    fprintf( stderr, "\t\t year from 1753 to 6753.\n\n" );
  207.    fprintf( stderr, "\t\(5,000 years SHOULD be enough.... )\n\n\a" );
  208.    exit( 1 );
  209. }
  210.  
  211. I offer this, should anyone ask, "When's Easter?"
  212. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  213.  
  214. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TK1717 Date: 03/24/89
  215. From: AMINUDDIN AHMAD                                       Time: 04:28 pm
  216.   To: ALL                                                   (Read 432 times)
  217. Subj: DOWNLOAD...
  218.  
  219. The code written above could serve me in some way. How can I download it?
  220. --->Amin.
  221. ---------------
  222. Following thread
  223.  
  224. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TL2078 Date: 03/24/89
  225. From: PAT SHEA                                              Time: 05:34 pm
  226.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 393 times)
  227. Subj: R: DOWNLOAD...
  228.  
  229. Amin ....
  230. I wish that I could say that I just wrote the above code "off the top of
  231. my head," but in reality it was written a few years ago in response to my
  232. son asking how the date of Easter was determined.  As you can see from a
  233. quick scan, there is a bunch of really handy date func's imbedded in all
  234. of that code - the Zeller func and the Julian date stuff (which I have
  235. implemented as long int).  I believe that Bob still has the original file
  236. posted in the Mahoney collection - look for EASTER.ZIP.  Actually, I found
  237. the research that went into hanging this one together to be fascinating -
  238. some of the calendar stuff, when you dig into it, is spookey as you will
  239. see from the comments in EASTER.C in the above mentioned ZIP.
  240. happyhacking !!!
  241. pats.
  242. ---------------
  243. ** Current thread: DOWNLOAD...
  244.  
  245. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TQ0705 Date: 03/24/89
  246. From: BRUCE ZUPEK                                           Time: 09:11 pm
  247.   To: PAT SHEA (Rcvd)                                       (Read 360 times)
  248. Subj: R: DOWNLOAD...
  249.  
  250. I had to solve this problem in 1969 at an IBM PL/1 school. I fail to see
  251. how you can take credit for something as common place as resolving when
  252. Easter occurs. Seems to me the IBM problem embraces Pascal something or
  253. other. Sorry!!!!
  254. ---------------
  255. ** Current thread: DOWNLOAD...
  256.  
  257. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UB1794 Date: 03/25/89
  258. From: PAT SHEA                                              Time: 07:29 am
  259.   To: BRUCE ZUPEK (Rcvd)                                    (Read 366 times)
  260. Subj: R: DOWNLOAD...
  261.  
  262. Bruce ...
  263. I went thru PL/1 'bout the same time <maybe a little before>... don't
  264. recall that one, however.  But then : it's the elegance of the the
  265. solution ..... <gag, koff, koff>
  266. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  267.  
  268. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TK1819 Date: 03/24/89
  269. From: AMINUDDIN AHMAD                                       Time: 04:30 pm
  270.   To: ALL                                                   (Read 381 times)
  271. Subj: SECOND MAN...
  272.  
  273. Oh, and I also forgot to mention that I am the second person to write in
  274. this conference. I hope it goes to the record. As they say, SECOND to
  275. none!
  276. --->Amin.
  277. ---------------
  278. Following thread
  279.  
  280. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TN2857 Date: 03/24/89
  281. From: GRANT ELLSWORTH (Leader)                              Time: 07:47 pm
  282.   To: PAT SHEA (Rcvd)                                       (Read 364 times)
  283. Subj: R: SECOND MAN...
  284.  
  285. Message CC'd to:
  286.      BOB MAHONEY
  287.      PAT SHEA
  288.      AMINUDDIN AHMAD
  289.  
  290. I'll bet Pat S. had a lot of fun putting that code together, too.
  291.  
  292. Amin, If your modem / comm program has an ascii download capability or
  293. a message logging capability, you should be able to use that to capture
  294. Pat's code.  But, it would be nice we had a little sub-set area for
  295. uploading C-oriented or C+ASM oriented items of interest without it all
  296. getting drowned in that massive marvelous Mahoney Collection!  And, for
  297. something the size of what Pat keyed in, an upload was definitely in
  298. order.
  299.  
  300. What about it, Bob? Any possibilities for a C-Lang/C + Asm upload section?
  301.  
  302. Grant
  303. ---------------
  304. ** Current thread: SECOND MAN...
  305.  
  306. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UB1346 Date: 03/25/89
  307. From: PAT SHEA                                              Time: 07:22 am
  308.   To: GRANT ELLSWORTH (Rcvd)                                (Read 346 times)
  309. Subj: R: SECOND MAN...
  310.  
  311. I'll second that - a conf of how-to's, gee-whiz's, and what-is's for
  312. snipits of code in C/ASM...
  313. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  314.  
  315. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23TN3200 Date: 03/24/89
  316. From: GRANT ELLSWORTH (Leader)                              Time: 07:53 pm
  317.   To: ALL                                                   (Read 347 times)
  318. Subj: 3RD PERSON IN
  319.  
  320. How embarassing,  the topic leader is the 3rd one in!
  321.  
  322. Anyway, to all comers, WELCOME!
  323.  
  324. Let's keep the C commentary and questions coming and interesting.
  325.  
  326. Enjoy!
  327.  
  328. Grant
  329. ---------------
  330.  
  331. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23U13139 Date: 03/25/89
  332. From: AMINUDDIN AHMAD                                       Time: 01:52 am
  333.   To: ALL                                                   (Read 396 times)
  334. Subj: THE ULTIMATE LANGUAGE
  335.  
  336. It was 1981 that I learned Fortran77 and 66. I thought that that there can
  337. never and will be a more powerful programming language that F77. I can
  338. write a code with my eyes closed, I thought. I was comparing fortran to
  339. BASIC language I knew previously. Then suddenly I had to learn PASCAL as a
  340. next course in college. I was so surprise that not only pascal is easier
  341. to use and understand, it is as powerful if not more that fortran. Again I
  342. said, THAT was the ultimate language. I wrote several softwares and codes,
  343. and convinced of its power (Turbo pascal). ""BUT"" next I learned of C.
  344. Now THAT IS an ultimate language, Turbo C. I just hope that there is no
  345. more language more powerful than C because I would then have to change the
  346. definition of the "Ultimate Language." What do you guys think ? Isnt C the
  347. ultimate language?
  348.  
  349. Definition: ULTIMATE LANGUAGE
  350.   Programming language that can practically do anything other language
  351.   can. Cheap enough for me to buy a registered copy, Borland products,
  352.   etc.
  353.  
  354. --->Amin.
  355. ---------------
  356. Following thread
  357.  
  358. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UB2280 Date: 03/25/89
  359. From: PAT SHEA                                              Time: 07:38 am
  360.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 342 times)
  361. Subj: R: THE ULTIMATE LANGUAGE
  362.  
  363. Amin ...
  364. It hasn't been written yet. K&R muse over whether it will be called 'D' or
  365. 'P' ...
  366. pats.
  367. ---------------
  368. ** Current thread: THE ULTIMATE LANGUAGE
  369.  
  370. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UG0090 Date: 03/25/89
  371. From: HENRIK SCHMIEDICHE                                    Time: 12:01 pm
  372.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 329 times)
  373. Subj: R: THE ULTIMATE LANGUAGE
  374.  
  375. There ain't no such thing... but I do admit that C is the best general
  376. purpose language around. Brings the mind DOD's effort at an ultimate
  377. language - Ada. Wouldn't be so bad if it weren't based on Pascal (not
  378. PASCAL!). Anyway, if your looking for the next step after C it could
  379. possibly be C++. They say at AT&T they call C++ just C and the regular
  380. C the 'old C'. Anybody know of a good (and cheap) implementation of C++?
  381. Also, anybody know if Borland is working (planning) on TurboC 3.0? Any
  382. other comments on life, C and everything?
  383.  
  384.                                              - Henrik
  385. ---------------
  386. ** Current thread: THE ULTIMATE LANGUAGE
  387.  
  388. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UJ1613 Date: 03/25/89
  389. From: AMINUDDIN AHMAD                                       Time: 03:26 pm
  390.   To: PAT SHEA (Rcvd)                                       (Read 320 times)
  391. Subj: R: THE ULTIMATE LANGUAGE
  392.  
  393.   O  H        N  O  O  O  O  O  O O O O O OOOOoooooo..........!!!!!!
  394. Is that for real ??? Nobody is ever satisfied!  Why dont they just expand
  395. C language instead? Any idea how the format is ? Anything like C ? PROLOG?
  396. or something else....
  397. --->Amin.
  398. ---------------
  399. ** Current thread: THE ULTIMATE LANGUAGE
  400.  
  401. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UJ1954 Date: 03/25/89
  402. From: AMINUDDIN AHMAD                                       Time: 03:32 pm
  403.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 315 times)
  404. Subj: R: THE ULTIMATE LANGUAGE
  405.  
  406. Is that C++ an enhancement in the "old C" ? How much more powerful is it
  407. or is it just a clean up of the old C.
  408. --->Amin.
  409. ---------------
  410. ** Current thread: THE ULTIMATE LANGUAGE
  411.  
  412. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UK0964 Date: 03/25/89
  413. From: HENRIK SCHMIEDICHE                                    Time: 04:16 pm
  414.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 315 times)
  415. Subj: R: THE ULTIMATE LANGUAGE
  416.  
  417. I don't know exactly and I'd like to know myself. I think it for one
  418. allows for modularization of the code a'la Ada. But frankly, I'm just
  419. guessing...
  420.                                           - Henrik
  421. ---------------
  422. ** Current thread: THE ULTIMATE LANGUAGE
  423.  
  424. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23UQ2301 Date: 03/25/89
  425. From: ERIC JABLOW                                           Time: 09:38 pm
  426.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 316 times)
  427. Subj: R: THE ULTIMATE LANGUAGE
  428.  
  429. C++ is an extension of C.  It has various object-oriented features.
  430. It can be implemented either by a preprocessing step into C, or as a pure
  431. compiler.  Zortech makes a C++ for the IBM PC, at about the same price as
  432. Turbo C Professional.  The Gnu project (Free Software Foundation) makes a
  433. version for UNIX.
  434. ---------------
  435. ** Current thread: THE ULTIMATE LANGUAGE
  436.  
  437. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23V10695 Date: 03/26/89
  438. From: PAT SHEA                                              Time: 12:11 am
  439.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 340 times)
  440. Subj: R: THE ULTIMATE LANGUAGE
  441.  
  442. Amin ...
  443.  
  444. 'another one of my famous 'too-long' mssgs, but you might find it amusing.
  445. I picked it up from Usenet some time ago ...
  446.  
  447.              Selecting a Programming Language Made Easy
  448.  
  449.                   David Salomon & David Rosenbluth
  450.           Dept. of Computer Science, University of Waterloo
  451.                   Waterloo Ontario, Canada  N2L 3G1
  452.  
  453.    With such a large selection of programming languages, it can be
  454.    difficult to choose one for a particular project.  Reading the
  455.    manuals to evaluate the language is a time consuming process.
  456.    On the other hand, most people already have a fairly good idea
  457.    of how various automobiles compare.  So in order to assist those
  458.    trying to choose a language, we have prepared a chart that
  459.    matches programming languages with comparable automobiles.
  460.  
  461.   Assembler    - A formula I race car.  Very fast, but difficult to
  462.                  drive and expensive to maintain
  463.   FORTRAN II   - A Model T Ford.  Once it was king of the road.
  464.   FORTRAN IV   - A Model A Ford.
  465.   FORTRAN 77   - A six cylinder Ford Fairlane with standard
  466.                  transmission and no seat belts.
  467.   COBOL        - A delivery van.  It's bulky and ugly, but it does
  468.                  the work.
  469.   BASIC        - A second-hand Rambler with a re-built engine and
  470.                  patched upholstery.  Your Dad bought it for you to
  471.                  learn to drive.  You'll ditch the car as soon as
  472.                  you can afford a new one.
  473.   PL/I         - A Cadillac convertible with automatic
  474.                  transmission, a two tone paint job, white-wall
  475.                  tires, chrome exhaust pipes, and fuzzy dice
  476.                  hanging in the windshield.
  477.   C            - A black Firebird, the all-macho car.  Comes with
  478.                  optional seat belts (lint) and optional fuzz
  479.                  buster (escape to assembler).
  480.   ALGOL 60     - An Austin Mini.  Boy, that's a small car!
  481.   Pascal       - A Volkswagen Beetle.  It's small but sturdy.  Was
  482.                  once popular with intellectuals.
  483.   Modula II    - A Volkswagen Rabbit with a trailer hitch.
  484.   ALGOL 68     - An Aston Martin.  Impressive car, but not just
  485.                  anyone can drive it.
  486.   LISP         - An electric car.  It's simple but slow.  Seat
  487.                  belts are not included.
  488.   PROLOG/LUCID - Prototype concept-cars.
  489.   Forth        - A go cart.
  490.   LOGO         - A kiddie's replica of a Rolls Royce.  Comes with a
  491.                  real engine and a working horn.
  492.   APL          - A double decker bus.  It takes rows and columns of
  493.                  passengers to the same place all at the same time.
  494.                  But, it only drives in reverse gear, and is
  495.                  instrumented in Greek.
  496.   Ada          - An army-green Mercedes Benz staff car.  Power
  497.                  steering, power brakes, and automatic transmission
  498.                  are all standard.  No other colors or options are
  499.                  available.  It it's good enough for the Generals,
  500.                  it's good enough for you.  Manufacturing delays
  501.                  are due to difficulties reading the design
  502.                  specifications.
  503.  
  504. ok ???
  505. pats.
  506. ---------------
  507. ** Current thread: THE ULTIMATE LANGUAGE
  508.  
  509. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23V12858 Date: 03/26/89
  510. From: HENRIK SCHMIEDICHE                                    Time: 12:47 am
  511.   To: ERIC JABLOW (Rcvd)                                    (Read 293 times)
  512. Subj: R: THE ULTIMATE LANGUAGE
  513.  
  514. Thanks for the info, but could you be more specific. Is C++ going
  515. the direction of Ada and Modula 2 or is it just supercharging C?
  516. And since you seem to know about C, here are a few more questions:
  517. Is the Zortech implementation as polished as TurboC? A complete
  518. environment or just a compiler? Do you know of any C++ preproc-
  519. cessors for TurboC?
  520.                                             - Henrik
  521. ---------------
  522. ** Current thread: THE ULTIMATE LANGUAGE
  523.  
  524. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23V13454 Date: 03/26/89
  525. From: HENRIK SCHMIEDICHE                                    Time: 12:57 am
  526.   To: PAT SHEA (Rcvd)                                       (Read 281 times)
  527. Subj: R: THE ULTIMATE LANGUAGE
  528.  
  529. Great! I loved "your" descriptions - especially the one about Pascal.
  530. It seems that slowly but surely Pascal is being put into its right-
  531. ful place: the garbage can! Don't ask me to explain or justify
  532. my feelings about Pascal - they just are. Its a hatred that I cannot
  533. explain or rationalize...
  534.                                        - Henrik
  535. ---------------
  536. ** Current thread: THE ULTIMATE LANGUAGE
  537.  
  538. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VC1085 Date: 03/26/89
  539. From: AL HANSEN                                             Time: 08:18 am
  540.   To: PAT SHEA (Rcvd)                                       (Read 270 times)
  541. Subj: R: THE ULTIMATE LANGUAGE
  542.  
  543. Pat,
  544.    What did the two Daves say about RPG?  Its the only language you
  545. missed, and one of the most popular (ie IBM S/3X, AS/400, etc.). AL --
  546. ---------------
  547. ** Current thread: THE ULTIMATE LANGUAGE
  548.  
  549. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VD3055 Date: 03/26/89
  550. From: PAT SHEA                                              Time: 09:50 am
  551.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 271 times)
  552. Subj: R: THE ULTIMATE LANGUAGE
  553.  
  554. Henrik ...
  555. I really wish that I could take credit for that one - it's something that
  556. I picked
  557.  up from Usenet that I thought might be applicable here.
  558. best regards & Happy Easter !!!
  559. pats.
  560. ---------------
  561. ** Current thread: THE ULTIMATE LANGUAGE
  562.  
  563. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VD3523 Date: 03/26/89
  564. From: PAT SHEA                                              Time: 09:58 am
  565.   To: AL HANSEN (Rcvd)                                      (Read 267 times)
  566. Subj: R: THE ULTIMATE LANGUAGE
  567.  
  568. Al -
  569. donno ... that is the mssg in toto from Usenet.  I if I were asked,
  570. however, I would liken RPG to maybe a Toyota Fork Truck - quite
  571. utilitarian and can be driven by just about anyone with some degree of
  572. success.  Double curved spine NOT required.
  573. Happy Easter !!!
  574. pats.
  575. ---------------
  576. ** Current thread: THE ULTIMATE LANGUAGE
  577.  
  578. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VG0831 Date: 03/26/89
  579. From: AMINUDDIN AHMAD                                       Time: 12:13 pm
  580.   To: PAT SHEA (Rcvd)                                       (Read 257 times)
  581. Subj: R: THE ULTIMATE LANGUAGE
  582.  
  583. That was a great!!!!, never thought of it that way. As it seems, the black
  584. firebird ("C") is really appealing. Therefore, before I could afford an
  585. brand new Porsche, I'll stick with it.
  586. --->Amin.
  587. ---------------
  588. ** Current thread: THE ULTIMATE LANGUAGE
  589.  
  590. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VK1781 Date: 03/26/89
  591. From: HENRIK SCHMIEDICHE                                    Time: 04:29 pm
  592.   To: PAT SHEA (Rcvd)                                       (Read 257 times)
  593. Subj: R: THE ULTIMATE LANGUAGE
  594.  
  595. Pat,
  596. Well if you find anymore gems of this kind make sure you upload it!
  597.                                           - Henrik
  598. ---------------
  599. ** Current thread: THE ULTIMATE LANGUAGE
  600.  
  601. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VM1730 Date: 03/26/89
  602. From: AL HANSEN                                             Time: 06:28 pm
  603.   To: PAT SHEA (Rcvd)                                       (Read 250 times)
  604. Subj: R: THE ULTIMATE LANGUAGE
  605.  
  606. Pat,
  607.    Doesn't sound bad at all.  YOU could have done a better job than the
  608. two Daves ..  AL --
  609. ---------------
  610. ** Current thread: THE ULTIMATE LANGUAGE
  611.  
  612. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VM3484 Date: 03/26/89
  613. From: PAT SHEA                                              Time: 06:58 pm
  614.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 269 times)
  615. Subj: R: THE ULTIMATE LANGUAGE
  616.  
  617. Henrik ...
  618. 'got another one : also from Usenet from a while back
  619.  
  620. try this one....
  621.  
  622.   I have seen the requirements for the capabilities of UNIX people
  623.   (like guru, user, wizard, etc.) and I got thinking about what
  624.   similar ones might be for C people.  I came up with the following:
  625.  
  626. novice
  627.     - puts "#include <stdio.h>" in his code, but is not sure why
  628.     - has heard of pointers, but has never seen one
  629.  
  630. user
  631.     - uses the following macros:
  632.        #define BEGIN   {
  633.        #define END     ;}
  634.     - has had a bad experience with pointers
  635.     - knows the difference between ' and "
  636.  
  637. knowledgeable user
  638.     - uses:  if(a==b)
  639.                c = 1;
  640.              else
  641.                c = 0;
  642.     - uses pointers, but only in place of arrays
  643.     - loves writing code on VMS
  644.  
  645. expert
  646.     - uses:
  647.          c = (a==b) ? 1 : 0;
  648.     - uses pointers comfortably
  649.     - are jazzed when they find a compiler bug because they found it
  650.     - has figured out what && and || are for
  651.     - refuses to write C code on VMS
  652.  
  653. hacker
  654.     - uses:
  655.          c = a==b;
  656.     - writes code which use pointers to functions
  657.     - writes macros instead of simple functions
  658.     - uses bitwise operators because they are like assembler
  659.     - writes simple code with "cat >"
  660.         and compiles it with "!cc".argv and argc
  661.  
  662. guru
  663.     - avoids bitwise operators due to portability
  664.     - are annoyed with compiler bugs
  665.     - writes code portable enough to port from VMS
  666.         but doesn't relish the thought
  667.     - can answer most C questions after a little thought
  668.  
  669. wizard
  670.     - compilers with "cat >" (and they work!)
  671.     - reads device driver source with breakfast
  672.     - can tell what question you are about to ask, and answer it
  673.     - is on a first-name basis with Dennis, Bill, and Ken
  674.  
  675. Oh well, on the the more serious stuff. . .
  676. Wade Guthrie
  677. evil@arcturus.UUCP
  678. Rockwell International
  679. Anaheim, CA
  680. /* ------------Cut Here ---------*/
  681.  
  682. I hate to say°─ where I fall in that spectrum !!!!
  683.  
  684. best regards,
  685. pats.
  686. ---------------
  687. ** Current thread: THE ULTIMATE LANGUAGE
  688.  
  689. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VP2611 Date: 03/26/89
  690. From: HENRIK SCHMIEDICHE                                    Time: 08:43 pm
  691.   To: PAT SHEA (Rcvd)                                       (Read 241 times)
  692. Subj: R: THE ULTIMATE LANGUAGE
  693.  
  694.   Pat,
  695. Beautiful..... Though I think the list does go both ways. What I mean
  696. is that I've started regressing through the list backwards.
  697. Several years ago I'd have been delighted with code like:
  698. "c = a==b;" But, I've mellowed.... The pieces of code
  699. I write are getting longer and longer and my functions are starting
  700. to have names like:
  701.  
  702.        get_a_key_and_place_cursor_at (int row, int column);
  703.  
  704. (well maybe not quite that bad, but you get the drift.) I do write
  705. code with pointers to functions though...
  706.                                          - Henrik
  707. ---------------
  708. ** Current thread: THE ULTIMATE LANGUAGE
  709.  
  710. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VR1906 Date: 03/26/89
  711. From: PAT SHEA                                              Time: 10:31 pm
  712.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 229 times)
  713. Subj: R: THE ULTIMATE LANGUAGE
  714.  
  715. yes, I find that I'm doing the same in that I started using the Hungarian
  716. notation out of self defense, liked it, and now find that other folks can
  717. read my code and follow it.  <that can be both good and bad...>  ALSO....
  718. it's nice to be able to dig back thru your drek heap and know what in hell
  719. you were doing or trying to do when you wrotethat utility func 3 yrs ago.
  720. happyhacking,
  721. pats.
  722. ---------------
  723. ** Current thread: THE ULTIMATE LANGUAGE
  724.  
  725. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WM0556 Date: 03/27/89
  726. From: GRANT ELLSWORTH (Leader)                              Time: 06:09 pm
  727.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 225 times)
  728. Subj: R: THE ULTIMATE LANGUAGE
  729.  
  730. Amin, Much as I like C as a programming tool, I can't concur that it is
  731. the ultimate language.  Different languages/programming tools have their
  732. specific uses where the specific tool has advantages over others.  Seems
  733. to me that the ultimate tool will exist when I can pick up a microphone
  734. and "tell the computer" what results I want and have the computer figure
  735. out how to make it so!  Grant
  736. ---------------
  737. ** Current thread: THE ULTIMATE LANGUAGE
  738.  
  739. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WM0782 Date: 03/27/89
  740. From: GRANT ELLSWORTH (Leader)                              Time: 06:13 pm
  741.   To: PAT SHEA (Rcvd)                                       (Read 218 times)
  742. Subj: R: THE ULTIMATE LANGUAGE
  743.  
  744. Excellent Summary by our Canadian neighbors --- they have always had a
  745. detached way of looking at our US brawls.  Grant
  746. ---------------
  747. ** Current thread: THE ULTIMATE LANGUAGE
  748.  
  749. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WN2721 Date: 03/27/89
  750. From: BRUCE ZUPEK                                           Time: 07:45 pm
  751.   To: PAT SHEA (Rcvd)                                       (Read 221 times)
  752. Subj: R: THE ULTIMATE LANGUAGE
  753.  
  754. My vote(s).......
  755. 370/309x Mainframe........And the winner is PL/1
  756. Intel Micros..............And the winner is the API interface. It doesn't
  757. matter what the calling language is, it just plain works with OS/2.
  758. ---------------
  759. ** Current thread: THE ULTIMATE LANGUAGE
  760.  
  761. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WP0993 Date: 03/27/89
  762. From: PAT SHEA                                              Time: 08:16 pm
  763.   To: GRANT ELLSWORTH (Rcvd)                                (Read 217 times)
  764. Subj: R: THE ULTIMATE LANGUAGE
  765.  
  766. Grant ...
  767. it sounds like you want HAL <of movie fame>
  768. pats.
  769. ---------------
  770. ** Current thread: THE ULTIMATE LANGUAGE
  771.  
  772. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XE2185 Date: 03/28/89
  773. From: GREG RYAN                                             Time: 10:36 am
  774.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 214 times)
  775. Subj: R: THE ULTIMATE LANGUAGE
  776.  
  777. Zortech supposedly has a good implementation of C+..I think it was
  778. originally Datalight C by Walter Bright but the package got bought and so
  779. it goes...
  780. Greg
  781. ---------------
  782. ** Current thread: THE ULTIMATE LANGUAGE
  783.  
  784. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XE2262 Date: 03/28/89
  785. From: GREG RYAN                                             Time: 10:37 am
  786.   To: ERIC JABLOW (Rcvd)                                    (Read 209 times)
  787. Subj: R: THE ULTIMATE LANGUAGE
  788.  
  789. Will the next major rewrite of C++ be C+++...how many + are you allowed to
  790. add before the industry doesn't take you seriously any more?
  791. Greg
  792. ---------------
  793. ** Current thread: THE ULTIMATE LANGUAGE
  794.  
  795. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XK0608 Date: 03/28/89
  796. From: GRANT ELLSWORTH (Leader)                              Time: 04:10 pm
  797.   To: PAT SHEA (Rcvd)                                       (Read 207 times)
  798. Subj: R: THE ULTIMATE LANGUAGE
  799.  
  800. >> You want HAL <of 2001 fame> ...  Yep!
  801. ---------------
  802. ** Current thread: THE ULTIMATE LANGUAGE
  803.  
  804. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XK1447 Date: 03/28/89
  805. From: GEORGE KOFMAN                                         Time: 04:24 pm
  806.   To: PAT SHEA (Rcvd)                                       (Read 207 times)
  807. Subj: R: THE ULTIMATE LANGUAGE
  808.  
  809. Pat ---
  810.  
  811. as one computer professional to another, the 'Comp. Lang' message made me
  812. smile at the end of a $%^tty workday. I personally liked the Fortran-77,
  813. PL/I, and ADA the best.
  814.  
  815. George.
  816. ---------------
  817. ** Current thread: THE ULTIMATE LANGUAGE
  818.  
  819. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XK1779 Date: 03/28/89
  820. From: GEORGE KOFMAN                                         Time: 04:29 pm
  821.   To: PAT SHEA (Rcvd)                                       (Read 202 times)
  822. Subj: R: THE ULTIMATE LANGUAGE
  823.  
  824. Pats ---
  825.  
  826. this is getting better and better!
  827. Geo.
  828. ---------------
  829. ** Current thread: THE ULTIMATE LANGUAGE
  830.  
  831. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XL2009 Date: 03/28/89
  832. From: PAT SHEA                                              Time: 05:33 pm
  833.   To: GRANT ELLSWORTH (Rcvd)                                (Read 206 times)
  834. Subj: R: THE ULTIMATE LANGUAGE
  835.  
  836. Grant ...
  837. have you seen the text file 'bout HAL in the UNIX collection - quite well
  838. done.  It's a 16-bit compressed file.
  839. best regards,
  840. pats
  841. ---------------
  842. ** Current thread: THE ULTIMATE LANGUAGE
  843.  
  844. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XL2183 Date: 03/28/89
  845. From: PAT SHEA                                              Time: 05:36 pm
  846.   To: GEORGE KOFMAN (Rcvd)                                  (Read 199 times)
  847. Subj: R: THE ULTIMATE LANGUAGE
  848.  
  849. George ...
  850. I wish I could remember when/where I picked that up from : I think it's
  851. from USENET a coupla yrs. ago.
  852. best regards,
  853. pats.
  854. ---------------
  855. ** Current thread: THE ULTIMATE LANGUAGE
  856.  
  857. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XP1534 Date: 03/28/89
  858. From: AMINUDDIN AHMAD                                       Time: 08:25 pm
  859.   To: ALL                                                   (Read 198 times)
  860. Subj: THE ULTIMATE LANGUAGE
  861.  
  862. Ever heard of a language named TRILOGY ? It is basically a combination of
  863. 3 most powerful languages. These are C, PROLOG, and DATABASE. I think,
  864. these are the kind of ability I would look forward to. I only heard about
  865. it, saw its ad in PC Mag. sometime ago. I dont really know how it works.
  866. So if anyone have used it before, perhaps you can give somekind of a
  867. preview??? Perhaps this is the next step after C.
  868. --->Amin.
  869. ---------------
  870. ** Current thread: THE ULTIMATE LANGUAGE
  871.  
  872. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XR2439 Date: 03/28/89
  873. From: ERIC JABLOW                                           Time: 10:40 pm
  874.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 198 times)
  875. Subj: R: THE ULTIMATE LANGUAGE
  876.  
  877. I wouldn't claim that C++ is going off in the same direction as Modula-2 or
  878. Ada; it's mostly a supercharged C with a giant object-oriented component.
  879. For example, many of the ANSI enhancements to C were inspired by C++;
  880. function prototypes, for example.  Ada has overloading of functions, and
  881. private types, but it is big and clumsy.  I prefer the C++ methods of
  882. operator inheritance.
  883.  
  884. I don't think that Zorth C and C++ arte as polished as TurboC, but
  885. it does have a programming environment.  I don't know of any C++
  886. preprocessors for Turbo C; for small PC-based systems, a true compiler
  887. would be preferable.
  888.  
  889. Eric Jablow
  890. ---------------
  891. ** Current thread: THE ULTIMATE LANGUAGE
  892.  
  893. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XS2550 Date: 03/28/89
  894. From: GEORGE KOFMAN                                         Time: 11:42 pm
  895.   To: PAT SHEA (Rcvd)                                       (Read 201 times)
  896. Subj: R: THE ULTIMATE LANGUAGE
  897.  
  898. Pats ---
  899.  
  900. I downloaded the Comp. Lang./Unix stuff, and passed it around the office.
  901. Other people enjoyed them almost as much as I did. Thanks much. Geo.
  902. ---------------
  903. ** Current thread: THE ULTIMATE LANGUAGE
  904.  
  905. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23Y11736 Date: 03/29/89
  906. From: HENRIK SCHMIEDICHE                                    Time: 12:28 am
  907.   To: ERIC JABLOW (Rcvd)                                    (Read 204 times)
  908. Subj: R: THE ULTIMATE LANGUAGE
  909.  
  910.     Erik,
  911. I wouldn't want C to go in the direction of Ada, what I would like though
  912. is the ability to modularize my code. It is nice to be able to write
  913. functions that are only available to certain subroutines but not all and
  914. to be able to declare variables global to only a specific number of
  915. functions (ie. the module). The thing I really wonder is where TC and
  916. MSC are going to to go next (except faster & smaller, ofcourse!).
  917.                                         - Henrik
  918.  
  919. P.S.: The ability to multitask is nice too (within a program), although
  920.       that could be simulated in C.
  921. ---------------
  922. ** Current thread: THE ULTIMATE LANGUAGE
  923.  
  924. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25BI0835 Date: 05/07/89
  925. From: DEAN LIND                                             Time: 02:13 pm
  926.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 169 times)
  927. Subj: R: THE ULTIMATE LANGUAGE
  928.  
  929. Aminuddin:
  930.  
  931.    You're absolutely correct in your opinion of C as the 'ultimate
  932. language'. I have yet to find anything that I have been unable to do using
  933. Turbo C, and with the advent of Borland's outstanding debugger it's just
  934. about perfect!
  935. ---------------
  936. ** Current thread: THE ULTIMATE LANGUAGE
  937.  
  938. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FGQ0061 Date: 11/12/89
  939. From: LARRY ASHWORTH                                        Time: 09:01 pm
  940.   To: GREG RYAN (Rcvd)                                      (Read 120 times)
  941. Subj: R: THE ULTIMATE LANGUAGE
  942.  
  943. There seems to be far too many who want to change the rules of the game
  944. just for the sake of change.  Languages can improve slowly and naturally
  945. evolve (like C) but we really DON'T need a whole new language.
  946. Every time you change environment you start from scratch.  Stick with what
  947. you know unless there isn't any other alternative.  Productivity should be
  948. the key.
  949. C library support is what really excites me about C.
  950. Yes I agree with you, how can we take these bozo's seriously.
  951. ---------------
  952. ** Current thread: THE ULTIMATE LANGUAGE
  953.  
  954. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FKL2014 Date: 11/16/89
  955. From: GRANT ELLSWORTH (Leader)                              Time: 05:33 pm
  956.   To: LARRY ASHWORTH (Rcvd)                                 (Read 116 times)
  957. Subj: R: THE ULTIMATE LANGUAGE
  958.  
  959. >Stick with what you know unless there isn't any other alternative ...
  960.  
  961. Good reason for the commercial DP community to hold on to COBOL forever...
  962. what-ever the cost....
  963.  
  964. Technology and techniques change and improve.  We really need to learn how
  965. to adapt quickly to the new tools of the trade ... else we go the way of
  966. the blacksmiths.
  967. ---------------
  968. ** Current thread: THE ULTIMATE LANGUAGE
  969.  
  970. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FMN0792 Date: 11/18/89
  971. From: LARRY ASHWORTH                                        Time: 07:13 pm
  972.   To: GRANT ELLSWORTH (Rcvd)                                (Read 112 times)
  973. Subj: R: THE ULTIMATE LANGUAGE
  974.  
  975. Welll I may have overstated the case and the fact is things are changing
  976. so fast that you are indeed correct that we need to keep up.
  977.  But wouldnt you agree that the product is the point and not the compiler.
  978. I think it's called seeing the forest for the trees.
  979.  The answer is better programmers, not just better compilers.
  980. ---------------
  981. ** Current thread: THE ULTIMATE LANGUAGE
  982.  
  983. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FMQ2932 Date: 11/18/89
  984. From: LARRY ASHWORTH                                        Time: 09:48 pm
  985.   To: GRANT ELLSWORTH (Rcvd)                                (Read 109 times)
  986. Subj: R: THE ULTIMATE LANGUAGE
  987.  
  988.  
  989.   First I'd like to say I've really enjoyed the various ideas presented
  990. in regards to the "Ultimate" compiler, but what I see as I look at the
  991. industry is the dynamic change that is creating the ultimate compiler
  992. release by product release.
  993.   All compilers seem to be merging, converging, and colescing into a
  994. common set of environments and capacities.  QuickBasic 4.5 and QuickC 2.0
  995. are very similar in environment, and QuickBasic is an amazing language
  996. considering it's Basic roots.
  997.   The constraints caused by expensive or limited memory have been largely
  998. eliminated so the door is wide open for explosive growth in all
  999. directions.
  1000. There really is no reason why Basic couldn't have memory models, or any
  1001. other desirable feature.  There's really no reason for any compiler to
  1002. lack anything of merit.
  1003.   It seems to me that the real question may be more esoteric than a
  1004. discussion of syntax, but rather a question of artificial intelligence.
  1005. Or just intelligence.  What problem are we wanting to solve?  Do we need
  1006. a different tool or a different algorithm.  What influence do the tools
  1007. have on the implementation of the algorithm?
  1008.   Perhaps we should we have a set of languages, that are complementary but
  1009. optimized for a particular type of programming.  Then you have the ability
  1010. to change context smoothly.  With linear syntax.
  1011.   Doesn't C already fit the bill?  With the proper set of libraries you
  1012. can
  1013. do nearly anything you can imagine.   ( Even MORE than I can imagine )  Or
  1014. is C too piecemeal.  A fantastic kludge.  One size fits all.  Sort of.
  1015.   I'd like to hear what you all think is WRONG with current languages.
  1016. Then maybe we could see what the Ultimate Compiler ought to be......
  1017. ---------------
  1018. ** Current thread: THE ULTIMATE LANGUAGE
  1019.  
  1020. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FMR2832 Date: 11/18/89
  1021. From: GRANT ELLSWORTH (Leader)                              Time: 10:47 pm
  1022.   To: LARRY ASHWORTH (Rcvd)                                 (Read 112 times)
  1023. Subj: R: THE ULTIMATE LANGUAGE
  1024.  
  1025. I think you mean "language" ,,, not "product".  A compiler is merely an
  1026. implementation of a language processor.  And I agree, we need to consider
  1027. the "language" aspect of the tool, not the specific implementation. Yes,
  1028. we DO need better programmers,  and those programmers need good tools.
  1029. ---------------
  1030. ** Current thread: THE ULTIMATE LANGUAGE
  1031.  
  1032. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FMR3322 Date: 11/18/89
  1033. From: GRANT ELLSWORTH (Leader)                              Time: 10:55 pm
  1034.   To: LARRY ASHWORTH (Rcvd)                                 (Read 109 times)
  1035. Subj: R: THE ULTIMATE LANGUAGE
  1036.  
  1037. Concerning C as already "fitting the bill",  ,,, As much as I like to use
  1038. C, I do find some aspects of its syntax and constructs prone to
  1039. introducing "errors" which can hide from you (consider "if(a=b)" vs
  1040. "if(a==b)" for example).  C sets traps for the unwary coder.  And, as
  1041. such, is a little deficient.  But I do not disparage or denigrate the
  1042. inherent flexibility and extensibility of the language -- in that respect
  1043. it is a good tool.   The ultimate tool???? No.  I doubt there is any one
  1044. language or baseline programming tool which can adequately satisfy the
  1045. needs of all applications,,, and I doubt there is one underlying grammar
  1046. which could cover all the necessary bases.
  1047. ---------------
  1048. ** Current thread: THE ULTIMATE LANGUAGE
  1049.  
  1050. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FN12438 Date: 11/19/89
  1051. From: JOHN HEIM                                             Time: 01:40 am
  1052.   To: GRANT ELLSWORTH (Rcvd)                                (Read 112 times)
  1053. Subj: R: THE ULTIMATE LANGUAGE
  1054.  
  1055. RE: I doubt ther is one underlying grammer which could cover all the
  1056.      necessary bases.
  1057.  
  1058. Agreed.  But C comes closer than anything else currently in existance.  I
  1059. doubt that any other language has been used for a wider variety of tasks.
  1060. It's become the language of choice for programmers in the micro and mini
  1061. arenas and is making inroads on the bigger machines.  I'm always running
  1062. into mainframe guys who are really interested in learning C.  Quite a job
  1063. for some RPG and COBOL programmers.  I've even had some say they dont see
  1064. what can be so hard about it.  It can't be that different from what
  1065. they're already doing - right?
  1066.  
  1067. John
  1068. ---------------
  1069. ** Current thread: THE ULTIMATE LANGUAGE
  1070.  
  1071. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FU10694 Date: 11/25/89
  1072. From: GRANT ELLSWORTH (Leader)                              Time: 12:11 am
  1073.   To: JOHN HEIM (Rcvd)                                      (Read 110 times)
  1074. Subj: R: THE ULTIMATE LANGUAGE
  1075.  
  1076. John,  I agree .. C is "closer" than any other commonly used tool
  1077. available today,  but, I've been impressed with the more "consistent"
  1078. syntax of Modula-2, and have been hearing some good comments on ADA.
  1079.  
  1080. Now, on your other topic, if you want to see a mainframe cobol/rpg
  1081. programmer "freak out", submit a large C system source code with a K+R
  1082. and another learing guide in front of victim.  There will be many cries
  1083. of exasperation and horror before comprehension.  The big hurdle for these
  1084. programmers is C's use of pointers.  The 2nd lesser hurdle is C's concept
  1085. of "scope".
  1086.  
  1087. Grant
  1088. ---------------
  1089. ** Current thread: THE ULTIMATE LANGUAGE
  1090.  
  1091. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FVQ1244 Date: 11/26/89
  1092. From: JOHN HEIM                                             Time: 09:20 pm
  1093.   To: GRANT ELLSWORTH (Rcvd)                                (Read 107 times)
  1094. Subj: R: THE ULTIMATE LANGUAGE
  1095.  
  1096. RE: Mod-2 and ADA.
  1097.  
  1098. I've never used either.  It would be nice though if we could come up with
  1099. a languge with C's good qualities but w/o it's little quirks.  It would be
  1100. easy to imagine a language with better syntax than C.  ie.
  1101.  
  1102.      if (a = b) { ... mess ...}
  1103.  
  1104. (which, of course causes mess to be executed every time) is a mistake I
  1105. continue to make ocassionally and have a hard time finding.
  1106.  
  1107. There are alot of other things in C that can make it easy to make
  1108. mistakes.
  1109.  
  1110. John
  1111. ---------------
  1112. ** Current thread: THE ULTIMATE LANGUAGE
  1113.  
  1114. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2G1C2440 Date: 12/01/89
  1115. From: GREG KOCHANIAK                                        Time: 08:40 am
  1116.   To: JOHN HEIM (Rcvd)                                      (Read 123 times)
  1117. Subj: R: THE ULTIMATE LANGUAGE
  1118.  
  1119. John,
  1120. My way to deal with mess in something like:
  1121.   if (a=b) {... mess ...}
  1122. is my CODE.H include file. It contains definitions like this:
  1123.  
  1124. #define IF(c)          if(c) {
  1125. #define ELSE           ;} else {
  1126. #define ENDIF          ;}
  1127. #define ELSEIF(c)      ;} else if (c) {
  1128.     and more...
  1129. Now after #include <code.h> I can write my program this way:
  1130.  
  1131.     IF (a == b)
  1132.          instructions...
  1133.          instructions...
  1134.     ELSEIF (a == 0)
  1135.          other code...
  1136.     ELSE
  1137.          more code...
  1138.     ENDIF
  1139. and so on. I have more definitions: FOR/ENDF, WHILE/ENDW, CASE/ENDCASE,
  1140. FOREVER/ENDFR and so on. This way the program looks much more clear and is
  1141. easier to analyze. What do you think? If you are interested, I can upload
  1142. my CODE.H here, maybe you will further improve it?
  1143.    Greg
  1144. ---------------
  1145. ** Current thread: THE ULTIMATE LANGUAGE
  1146.  
  1147. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2G5R1173 Date: 12/05/89
  1148. From: JOHN HEIM                                             Time: 10:19 pm
  1149.   To: GREG KOCHANIAK (Rcvd)                                 (Read 98 times)
  1150. Subj: R: THE ULTIMATE LANGUAGE
  1151.  
  1152. RE: code.h
  1153.  
  1154. I'm interested.  I have a few reservations though.  Mainly that the
  1155. uninitiated wouldn't know what to make of the code.  I try keep an open
  1156. mind about such things though.
  1157.  
  1158. John
  1159.  
  1160. PS ---- I set up infinate loops thusly ...
  1161.  
  1162. #define FOREVER ;;
  1163.  
  1164. for (FOREVER)
  1165. {
  1166. ...
  1167. }
  1168.  
  1169. Somehow it seems sorta poetic that C lets you define FOREVER so elegantly.
  1170. ---------------
  1171. ** Current thread: THE ULTIMATE LANGUAGE
  1172.  
  1173. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GAC0949 Date: 12/06/89
  1174. From: GREG KOCHANIAK                                        Time: 08:15 am
  1175.   To: JOHN HEIM (Rcvd)                                      (Read 100 times)
  1176. Subj: R: THE ULTIMATE LANGUAGE
  1177.  
  1178. John,
  1179. I'll prepare my CODE.H together with an example and ty to UL it here
  1180. with the name like CLEAR_C.ZIP or similar.
  1181.    Greg
  1182. ---------------
  1183. ** Current thread: THE ULTIMATE LANGUAGE
  1184.  
  1185. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GBA1563 Date: 12/07/89
  1186. From: JOHN HEIM                                             Time: 06:26 am
  1187.   To: GREG KOCHANIAK (Rcvd)                                 (Read 88 times)
  1188. Subj: R: THE ULTIMATE LANGUAGE
  1189.  
  1190. RE: Uploading CODE.H
  1191.  
  1192. Great, leave a message here when it's available and I'll look for it.
  1193.  
  1194. John
  1195. ---------------
  1196. ** Current thread: THE ULTIMATE LANGUAGE
  1197.  
  1198. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GBE2220 Date: 12/07/89
  1199. From: GREG KOCHANIAK                                        Time: 10:37 am
  1200.   To: JOHN HEIM (Rcvd)                                      (Read 83 times)
  1201. Subj: R: THE ULTIMATE LANGUAGE
  1202.  
  1203. John,
  1204. CLEAR_C.ZIP is available in file section A.
  1205.   Greg
  1206. ---------------
  1207. ** Current thread: THE ULTIMATE LANGUAGE
  1208.  
  1209. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 31KP3258 Date: 01/16/90
  1210. From: JOHN HEIM                                             Time: 08:54 pm
  1211.   To: GREG KOCHANIAK (Rcvd)                                 (Read 102 times)
  1212. Subj: R: THE ULTIMATE LANGUAGE
  1213.  
  1214. Greg,
  1215.   Ok, I'll check it out.
  1216. John
  1217. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1218.  
  1219. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VL2047 Date: 03/26/89
  1220. From: JOE VINCENT                                           Time: 05:34 pm
  1221.   To: ALL                                                   (Read 256 times)
  1222. Subj: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1223.  
  1224. As MS told me, an upgrade announcement has been sent to all registered MSC
  1225. 5.x users for Quick C 2.0.  I received mine Friday and it's already on its
  1226. way back to MS.  The price is $50 plus $5.50 S&H (I wonder if it's
  1227. possible to tell them that you don't want it handled?) for a total price
  1228. of $55.50!  Since QC 2.0 can be had for $69 or better via mail order, the
  1229. upgrade is no bargain.  Now I know how junkies feel!
  1230. ---------------
  1231. Following thread
  1232.  
  1233. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VR2030 Date: 03/26/89
  1234. From: HENRIK SCHMIEDICHE                                    Time: 10:33 pm
  1235.   To: JOE VINCENT (Rcvd)                                    (Read 227 times)
  1236. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1237.  
  1238.    Joe,
  1239. Wecome to the world of Microsoft! But let us not be too judgemental
  1240. After all, Bill Gates needs to make a living too. Any word on whats
  1241. new with Quick C 2.0?
  1242.                                   - Henrik
  1243. ---------------
  1244. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1245.  
  1246. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VS0084 Date: 03/26/89
  1247. From: JOE VINCENT                                           Time: 11:01 pm
  1248.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 224 times)
  1249. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1250.  
  1251. Let's see.  QC 2.0 has support for all memory models, full support for
  1252. in-line assembly code, integrated and enhanced source-level debugger, some
  1253. display stuff, an on-line programming reference guide (the same thing they
  1254. announced with QB 4.5), and, of course, faster compilation.
  1255.  
  1256. I've really been impressed with QB 4.5's "electronic manuals" and I'm
  1257. looking forward to the same kind of thing in QC 2.0.
  1258. ---------------
  1259. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1260.  
  1261. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VS2035 Date: 03/26/89
  1262. From: HENRIK SCHMIEDICHE                                    Time: 11:33 pm
  1263.   To: JOE VINCENT (Rcvd)                                    (Read 220 times)
  1264. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1265.  
  1266.    Joe,
  1267. What does QC 2.0 have that TC 2.0 doesn't? I have TC 2.0 and am happy
  1268. with it. Do you know about MS 5.x - is it worth the money and really
  1269. that much better then QC or TC?
  1270.                                           - Henrik
  1271. ---------------
  1272. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1273.  
  1274. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VS2265 Date: 03/26/89
  1275. From: JOE VINCENT                                           Time: 11:37 pm
  1276.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 212 times)
  1277. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1278.  
  1279. Henrik, I have TC 2.0 and MSC 5.1 and have just ordered QC 2.0.  However,
  1280. I'm not a heavy TC user.  I use MSC 5.1 mostly for the generation of
  1281. optimized executables.  With QC 2.0 supporting all memory models, I'll
  1282. probably use QC 2.0 for development and MSC 5.1 to do the final compile
  1283. for optimization.
  1284.  
  1285. However, I'm really just a dabbler with MSC 5.1 and TC 2.0.  There are
  1286. others here who use them much more than I do and are better qualified to
  1287. respond to your question.  Anybody?
  1288. ---------------
  1289. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1290.  
  1291. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FGP3152 Date: 11/12/89
  1292. From: LARRY ASHWORTH                                        Time: 08:52 pm
  1293.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 119 times)
  1294. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1295.  
  1296. I'm new to the forum but a friend who works at Novell and I go round and
  1297. round on topics like this one, and It's My Opinion that the bottom line is
  1298. the ability to do what you want.  If you're familiar with a language and
  1299. can get the job done, then that's the point isn't it????  It's easy to
  1300. esoteric about the ULTIMATE LANGUAGE when ultimately the point should be
  1301. productivity.
  1302. And the truth is QuickC is better.
  1303. ---------------
  1304. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1305.  
  1306. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FGQ1844 Date: 11/12/89
  1307. From: HENRIK SCHMIEDICHE                                    Time: 09:30 pm
  1308.   To: LARRY ASHWORTH (Rcvd)                                 (Read 124 times)
  1309. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1310.  
  1311.     LArry,
  1312. if one aonly knows one language and/or onlyhas access to one compiler,
  1313. then clearly one doesn't have a choice. The question is, if one has the
  1314. choice (and ability) what is the best programming language for a task.
  1315. There is no one answer to the question because the definition of "best" is
  1316. in the eye of the beholder. I can write a short database application
  1317. in DBASE III in about 1 tenth the time it takes me to write it in C (or
  1318. less) and if speed is important in defininn what "best" is then I'd be
  1319. stupid to use C. On the other hand if the final product is all that
  1320. matters then C may be a better choice (or may not - depending on
  1321. application). Similar arguments can be made about many other language.
  1322. LISP is clearly better for List Processin then C, while SNOBOL will blow c
  1323. out of the water when it comes to string processing. Ada handels
  1324. multitasking better then C, etc., etc., etc. So before one discusses the
  1325. issue of the best programming language I need to know the application and
  1326. definition of "best". So much for that. As for which version of C is the
  1327. best..... frankly both Quick C and Turbo C are so similar in performance
  1328. and features that It boild sown to a matter of personal preference. I have
  1329. Turbo C. I don't have Quick C. Therefore (suprise) I use and prefer Turboc
  1330. over Quick C. Actaully, what I really want is Quick C++ or Turbo C++.
  1331. Anyone have any idea if Turbo C is being upgraded some time in the future?
  1332.                                            - Henrik
  1333. ---------------
  1334. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1335.  
  1336. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FHM3460 Date: 11/13/89
  1337. From: LARRY ASHWORTH                                        Time: 06:57 pm
  1338.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 119 times)
  1339. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1340.  
  1341. The truth is that I agree with you 100%.  The work one do tends to focus
  1342. one's attention to the language that best fits the tasks at hand.
  1343.    I write database applications in a Dbase clone compiler, because just
  1344. as you say it makes sense.  I use Quick Basic 4.5 for one page of code
  1345. calculations, and I'm using C for larger jobs.
  1346.    I was reading about the "Ultimate Language" in the message base and
  1347. accidently forwarded my message to you.... As you say I say productivity
  1348. and context sensitivity are the issues not the ultimate compiler...
  1349.    Thank you for the note......
  1350. ---------------
  1351. ** Current thread: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1352.  
  1353. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FKL2166 Date: 11/16/89
  1354. From: GRANT ELLSWORTH (Leader)                              Time: 05:36 pm
  1355.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 112 times)
  1356. Subj: R: QUICK C 2.0 UPGRADE FOR MSC 5.X USERS
  1357.  
  1358. Henrik, i heartily endorse your key points ... especially that which
  1359. went : "... depends on the specific application".  Grant
  1360. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1361.  
  1362. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VN0399 Date: 03/26/89
  1363. From: PAT SHEA                                              Time: 07:06 pm
  1364.   To: ALL                                                   (Read 229 times)
  1365. Subj: OBFUSCAT.ZIP
  1366.  
  1367. 'just uploaded  the subject file : it's the 'ficial rules for this year's
  1368. obfuscated C code contest.  We've got 'til the end of May to submit our
  1369. "BEST" stuff .... <but what the hell ... it RUNS !!!>
  1370. pats.
  1371. ---------------
  1372. Following thread
  1373.  
  1374. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VR2152 Date: 03/26/89
  1375. From: HENRIK SCHMIEDICHE                                    Time: 10:35 pm
  1376.   To: PAT SHEA (Rcvd)                                       (Read 207 times)
  1377. Subj: R: OBFUSCAT.ZIP
  1378.  
  1379.    Pat,
  1380. You wouldn't have accesss to last years (or earlier) winners?
  1381. I'd really be interested.
  1382.                                                   - Henrik
  1383. ---------------
  1384. ** Current thread: OBFUSCAT.ZIP
  1385.  
  1386. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VR2328 Date: 03/26/89
  1387. From: PAT SHEA                                              Time: 10:38 pm
  1388.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 208 times)
  1389. Subj: R: OBFUSCAT.ZIP
  1390.  
  1391. Henrik...
  1392. someplace . . . I'll dig
  1393. pats.
  1394. ---------------
  1395. ** Current thread: OBFUSCAT.ZIP
  1396.  
  1397. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XR3404 Date: 03/28/89
  1398. From: ERIC JABLOW                                           Time: 10:56 pm
  1399.   To: PAT SHEA (Rcvd)                                       (Read 190 times)
  1400. Subj: R: OBFUSCAT.ZIP
  1401.  
  1402. I saw the old winners on comp.sources.misc a while back, but I skipped
  1403. them.  I once played with them tho; some are simply disgusting!  By the
  1404. way, how many of us have USENET accounts?  Perhaps we should share the
  1405. wealth and upload all the c.b.i.p and c.s.u and c.s.m stuff to EXEC-PC, or
  1406. is that too impractical?
  1407.  
  1408. Eric Jablow
  1409. ejablow@dasys1.UUCP
  1410. ericsbmath@sbee.sunysb.edu
  1411. ---------------
  1412. ** Current thread: OBFUSCAT.ZIP
  1413.  
  1414. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23YG0725 Date: 03/29/89
  1415. From: ERIK DUFEK                                            Time: 12:12 pm
  1416.   To: ERIC JABLOW (Rcvd)                                    (Read 195 times)
  1417. Subj: R: OBFUSCAT.ZIP
  1418.  
  1419. I think most of the stuff on c.b.i.p eventually finds it's way here.  I
  1420. don't know about c.s.u and c.s.m  If you do find something go ahead and
  1421. U/L it.  Please don't leave it as a .UUE though.
  1422.  
  1423. Erik Dufek        <erik@cup.portal.com>
  1424.                   <erik@netcom.UUCP>
  1425. ---------------
  1426. ** Current thread: OBFUSCAT.ZIP
  1427.  
  1428. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23YP0429 Date: 03/29/89
  1429. From: PAT SHEA                                              Time: 08:07 pm
  1430.   To: ERIC JABLOW (Rcvd)                                    (Read 192 times)
  1431. Subj: R: OBFUSCAT.ZIP
  1432.  
  1433. Eric ...
  1434. I pick up the winners for the old Obfuscated C Code Contest and have ZIP'd
  1435. 'em.  They are in the Mahoney collection as IOCCC.ZIP : it's got the
  1436. winning code for the years '84 thru '88.
  1437.  
  1438. RE:  the second part of Ur mssg ...
  1439.  
  1440. I thing what we should REALLY be doing is convincing Bob that he should
  1441. have USENET access as an option on Exec-PC.  <are you listening, Bob ???>
  1442.  
  1443. pats.
  1444. ---------------
  1445. ** Current thread: OBFUSCAT.ZIP
  1446.  
  1447. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23YS3115 Date: 03/29/89
  1448. From: ERIC JABLOW                                           Time: 11:51 pm
  1449.   To: PAT SHEA (Rcvd)                                       (Read 185 times)
  1450. Subj: R: OBFUSCAT.ZIP
  1451.  
  1452. Agreed.  after all, Bob's computers are running Xenix; he should have
  1453. USENET access.  In fact, if he devotes a few of his lines to anonymous
  1454. uucp'ing, then his file collections can get a very very big boost.
  1455. GNU stuff from MIT, TeX stuff from U. Washington, and many many more
  1456. things.  UUNET needs competition.
  1457.  
  1458. Thanks for the info on IOCCC.ZIP.  I'll download it later.  Perhaps I'll
  1459. assign to my students entering this for an exercise.  It should be a great
  1460. learning experience.  Unfortunately, because our computers at Stony Brook
  1461. in the student lab are set up for it, we have to use True Basic. :-(
  1462.  
  1463. Eric
  1464. ---------------
  1465. ** Current thread: OBFUSCAT.ZIP
  1466.  
  1467. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23Z13208 Date: 03/30/89
  1468. From: HENRIK SCHMIEDICHE                                    Time: 12:53 am
  1469.   To: PAT SHEA (Rcvd)                                       (Read 184 times)
  1470. Subj: R: OBFUSCAT.ZIP
  1471.  
  1472.    Pat,
  1473. thanks for the upload. I've been playing with the code. Most of the
  1474. programs don't compile on TC 2.0, but some do. It takes a very
  1475. derranged mind to come up with some of these programs.
  1476.                                                 - Henrik
  1477. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1478.  
  1479. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23VR3056 Date: 03/26/89
  1480. From: AMINUDDIN AHMAD                                       Time: 10:50 pm
  1481.   To: ALL                                                   (Read 212 times)
  1482. Subj: THE ULTIMATE C COMPILER
  1483.  
  1484. In 1984 I think, I bought myself a registered copy of Turbo C 1.0.
  1485. Sometime later, I heard of Quick C. I heard of its debugger and other
  1486. stuff of which TC dont have. So I ordered QC 1.0. After going thru the
  1487. manuals and its environment, I sold the brand new package the next day! I
  1488. am now with TC 2.0, years later. In my opinion, TC has the edge for some
  1489. powerful and simple features, plus a environment which will not confuse
  1490. me. I dont know how MS C 5.X looks like. Perhaps someone can give me an
  1491. example?
  1492. --->Amin.
  1493. ---------------
  1494. Following thread
  1495.  
  1496. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WM1212 Date: 03/27/89
  1497. From: GRANT ELLSWORTH (Leader)                              Time: 06:20 pm
  1498.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 211 times)
  1499. Subj: R: THE ULTIMATE C COMPILER
  1500.  
  1501. Amin, I tried out MSC 5.0 and then MSC5.1 on a friend's system.  I stuck
  1502. with TC2.0 for general programming purposes and use WC6.5 for optimizing
  1503. purposes in rare choicy circumstances.  Does that tell you something? GE
  1504. ---------------
  1505. ** Current thread: THE ULTIMATE C COMPILER
  1506.  
  1507. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FGP3286 Date: 11/12/89
  1508. From: LARRY ASHWORTH                                        Time: 08:54 pm
  1509.   To: GRANT ELLSWORTH (Rcvd)                                (Read 109 times)
  1510. Subj: R: THE ULTIMATE C COMPILER
  1511.  
  1512. I'm curious what you see in Watcom C when it appears to be so poorly
  1513. supported.  Is it compatible with other libraries??
  1514. ---------------
  1515. ** Current thread: THE ULTIMATE C COMPILER
  1516.  
  1517. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2FKL1800 Date: 11/16/89
  1518. From: GRANT ELLSWORTH (Leader)                              Time: 05:30 pm
  1519.   To: LARRY ASHWORTH (Rcvd)                                 (Read 106 times)
  1520. Subj: R: THE ULTIMATE C COMPILER
  1521.  
  1522. OK, Here's my opinion vs a vs WATCOM C 7.0
  1523.  
  1524. 3 major virtues are:
  1525.  
  1526. o EXCELLENT optimization of object code - lot's of parameter passing
  1527.   via the registers
  1528. o Relatively lower cost than MSC (the other SERIOUS contender, and some-
  1529.   times winner in the optimization sweepstakes)
  1530. o Support for the TINY model --- handy for tight TSR's
  1531.  
  1532. The optimization is so good, that I'd recommend WC as the target com-
  1533. piler for very cpu intensive tasks
  1534.  
  1535. 1 major weakness --- the optimizing pass is slower than MSC by a per-
  1536. ceptable margin.  HOwever, it does produce smaller .exe files - even with
  1537. EXEPACK taken into consideration.
  1538.  
  1539. I have seen ad's for several commercial function libs which DO include
  1540. support for WATCOM C.  And I also note that QD's DesqView provides support
  1541. for WC.
  1542.  
  1543. On the not-so-good side:
  1544.  
  1545. o the editor is rubbish
  1546. o the "express" version (a quick prototyping compiler) which comes with
  1547.   the package is only so-so
  1548. o there have been a few very annoying bugs and getting the fixes is a
  1549.   bit expensive --- unless you live/work in waterloo, ont.
  1550.  
  1551. BTW, the WVIDEO debugger is pretty good -- I like it better than CODEVIEW
  1552. but not nearly as much as the Borland TD product.
  1553.  
  1554. Grant
  1555. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1556.  
  1557. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WP3433 Date: 03/27/89
  1558. From: HENRIK SCHMIEDICHE                                    Time: 08:57 pm
  1559.   To: ALL                                                   (Read 206 times)
  1560. Subj: DETECTING PROCESSOR
  1561.  
  1562. Help! I would like to determine what processor the machine
  1563. my programm is running on is using. How can this be done in C?
  1564. If not in C, in assembler? I am using TC 2.0. I would like
  1565. to be able to distinguish between 8080, 8086, Nec v20, Nec v30,
  1566. 80286 & 80386. Any ideas?
  1567.                                      - Henrik
  1568. ---------------
  1569. Following thread
  1570.  
  1571. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WQ3179 Date: 03/27/89
  1572. From: DENNIS MEILICKE                                       Time: 09:52 pm
  1573.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 198 times)
  1574. Subj: R: DETECTING PROCESSOR
  1575.  
  1576. Henrik...
  1577.  
  1578. First let me say - Good Luck :-)
  1579.  
  1580. Download JAFB88.ZIP.  This is the source listings for Turbo Technix, V1#2.
  1581. It contains GETCPU.ARC, which contains an assembler routine, linkable into
  1582. TC, that detects the processor type.
  1583.  
  1584. This routine will differentiate between 808x, 8018x, 80286 and 80386.  As
  1585. far as I know, there is no way to tell if you have an 8088 or an 8086 -
  1586. the only difference is the bus size.  Don't know how you could possibly
  1587. check for that in software!
  1588.  
  1589. The NEC V20 will probably show up either as an 8018x, or an 80286, since
  1590. it supports some of the 80286 instructions.  The only way I can think of
  1591. to actually tell if it is a V20 would be to save off all of the registers,
  1592. use one of the V20s extended instructions, then check the effect on the
  1593. registers to see if the instruction worked.  I'm not sure what an Intel
  1594. processor will do if it encounters an invalid op-code, though.
  1595.  
  1596. Don't know much about the V30, so I can't even venture a guess there.
  1597.  
  1598. As I said before, Good Luck!
  1599.  
  1600. Dennis
  1601. ---------------
  1602. ** Current thread: DETECTING PROCESSOR
  1603.  
  1604. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23WS0177 Date: 03/27/89
  1605. From: HENRIK SCHMIEDICHE                                    Time: 11:02 pm
  1606.   To: DENNIS MEILICKE (Rcvd)                                (Read 197 times)
  1607. Subj: R: DETECTING PROCESSOR
  1608.  
  1609.    Dennis,
  1610. Thanks a lot for the info. I know that one can detect the Nec V20
  1611. and V30 since I've seen it done. I'll download the file and if anyone
  1612. else "out there" has any suggestions - let me know.
  1613.  
  1614.                                        - Henrik
  1615. ---------------
  1616. ** Current thread: DETECTING PROCESSOR
  1617.  
  1618. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23X42398 Date: 03/28/89
  1619. From: PAT SHEA                                              Time: 04:39 am
  1620.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 197 times)
  1621. Subj: R: DETECTING PROCESSOR
  1622.  
  1623. henrik ....
  1624. try CHIPS.ZIP in the Mahoney collection.  It'll tell you what the main
  1625. processor is and also the NDP (8087/80287/80387) all in one shot.  It does
  1626. not differentiate between the V20 and the V30, however.  It just detects
  1627. 'em by seeing if the Zero Flag gets kicked on a 'mul'.  It's got a C
  1628. callable OBJ.   'written for MSC, but full source code is in there so you
  1629. can tinker and Putz to ur heart's content, but I don't think that the
  1630. calling conventions are that different MSC vice TC on something like this.
  1631. happyhacking,
  1632. pats.
  1633. ---------------
  1634. ** Current thread: DETECTING PROCESSOR
  1635.  
  1636. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XM0689 Date: 03/28/89
  1637. From: HENRIK SCHMIEDICHE                                    Time: 06:11 pm
  1638.   To: PAT SHEA (Rcvd)                                       (Read 182 times)
  1639. Subj: R: DETECTING PROCESSOR
  1640.  
  1641.     Pat,
  1642. Thanks, I'll look at  it. TC already gives me a way of telling me which
  1643. NDP is installed (global variable _8087), but it'll be nice to see
  1644. how its done.
  1645.                                           - Henrik
  1646. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1647.  
  1648. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XK2390 Date: 03/28/89
  1649. From: GEORGE KOFMAN                                         Time: 04:39 pm
  1650.   To: ALL                                                   (Read 200 times)
  1651. Subj: SERIAL I/O IN C
  1652.  
  1653. Hello all!
  1654.  
  1655. I am not a 'C' programmer, but have used it on occasion. This week, I
  1656. have an occasion...
  1657.  
  1658. I am using MSC-5.0 (or QuickC 1.0, part of the same package).
  1659. What I need to do I have done in BASIC, but need to link it to my database
  1660. (Clipper '87), so it must be 'C'.
  1661.  
  1662. I need to open "COM2:1200,n,8,1,cs,ds" and send a string to the modem,
  1663. something like "ATDT 123-4567". Then either hangup, or wait for carrier.
  1664. But the main thing is, I need to open "COM2:" and send that string.
  1665. How do I do it in MS-C?
  1666.  
  1667. Thanks in advance!
  1668. Geo.
  1669. ---------------
  1670. Following thread
  1671.  
  1672. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XP1067 Date: 03/28/89
  1673. From: AMINUDDIN AHMAD                                       Time: 08:17 pm
  1674.   To: GEORGE KOFMAN (Rcvd)                                  (Read 196 times)
  1675. Subj: R: SERIAL I/O IN C
  1676.  
  1677. There is a C library for serial communications (Turbo C) in the Mahoney
  1678. collection. I forgot the file name, but you could scan for it easily.
  1679. --->Amin.
  1680. ---------------
  1681. ** Current thread: SERIAL I/O IN C
  1682.  
  1683. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23XS2637 Date: 03/28/89
  1684. From: GEORGE KOFMAN                                         Time: 11:43 pm
  1685.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 194 times)
  1686. Subj: R: SERIAL I/O IN C
  1687.  
  1688. Thanks, Amin. However, I am using MS-C (Microsoft C 5.0).
  1689. ---------------
  1690. ** Current thread: SERIAL I/O IN C
  1691.  
  1692. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23Y11000 Date: 03/29/89
  1693. From: AMINUDDIN AHMAD                                       Time: 12:16 am
  1694.   To: GEORGE KOFMAN (Rcvd)                                  (Read 195 times)
  1695. Subj: R: SERIAL I/O IN C
  1696.  
  1697. The code shouldn't be much different. Probably adjusting a thing or two.
  1698. And also I think there is one for MSC or QC.
  1699. --->Amin.
  1700. ---------------
  1701. ** Current thread: SERIAL I/O IN C
  1702.  
  1703. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23^M0232 Date: 03/31/89
  1704. From: GRANT ELLSWORTH (Leader)                              Time: 06:03 pm
  1705.   To: GEORGE KOFMAN (Rcvd)                                  (Read 188 times)
  1706. Subj: R: SERIAL I/O IN C
  1707.  
  1708. George, file Amin was referring to is called: SERIALTC.ZIP.  Conversion
  1709. to MSC 5.0/5.1 should not be a major problem.  I have done more than a
  1710. few MSC <---> TC2.0 "conversions".  A few things will need changed, but
  1711. most can be handled with #define's.  Grant
  1712. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1713.  
  1714. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23YI2098 Date: 03/29/89
  1715. From: GEORGE KOFMAN                                         Time: 02:34 pm
  1716.   To: ALL                                                   (Read 191 times)
  1717. Subj: MS-C 5.0 QUESTION
  1718.  
  1719. I started playing around with the MS-C's _bios_ calls, and got
  1720. something going to the modem. the problem is, even though the modem lights
  1721. are flashing, nothing gets dialed. What am
  1722. I doing wrong?    ((((( source code to follow )))
  1723.  
  1724. #include <stdio.h>
  1725. #include <bios.h>
  1726.  
  1727. main()
  1728.   {
  1729.   unsigned com2_status;
  1730.   unsigned port;
  1731.   unsigned char d[11];
  1732.   int i;
  1733.  
  1734.   port=1;  /* com2: */
  1735.  
  1736.   com2_status =
  1737. _bios_serialcom(_COM_INIT,port,_COM_CHR8|_COM_STOP1|_COM_NOPARITY|_COM_1200
  1738. );
  1739.   printf("COM2 status: %x\n",com2_status);
  1740.  
  1741.   strcpy(d,"+++ATDT340");
  1742.  
  1743.   for( i=0; i<=strlen(d); i++ ) {
  1744.         com2_status = _bios_serialcom(_COM_SEND,port,d[i]);
  1745.         putchar(d[i]);
  1746.   }
  1747.   printf("\nCOM2 status: %x\n",com2_status);
  1748.  
  1749.   }
  1750.  
  1751.  
  1752. Thanks in advance.
  1753. ---------------
  1754. Following thread
  1755.  
  1756. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23YN3584 Date: 03/29/89
  1757. From: PHIL HILL                                             Time: 07:59 pm
  1758.   To: GEORGE KOFMAN (Rcvd)                                  (Read 181 times)
  1759. Subj: R: MS-C 5.0 QUESTION
  1760.  
  1761. I notice a couple of things.
  1762.  
  1763. Hayes commands usually need to be terminated by a <cr>.  It should
  1764. work if you change the string to: "+++ATDT340\r" - though another
  1765. potential problem is that your loop will also send the terminating
  1766. nul, probably causing the modem to disconnect before any digits are
  1767. actually dialed.
  1768.  
  1769. I'd suggest this instead: for( i=0; d[i]; i++ ) {.  This'll stop
  1770. sending after the last non-null character - which is what you
  1771. meant to do, I'm sure.  Or, you could just drop the "=" and test
  1772. for i < strlen(d).
  1773. ---------------
  1774. ** Current thread: MS-C 5.0 QUESTION
  1775.  
  1776. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23ZD1458 Date: 03/30/89
  1777. From: GEORGE KOFMAN                                         Time: 09:24 am
  1778.   To: PHIL HILL (Rcvd)                                      (Read 173 times)
  1779. Subj: R: MS-C 5.0 QUESTION
  1780.  
  1781. Phil ---
  1782.  
  1783. many, many thanks. I will give it a try to-day, and let you know the
  1784. outcome. George.
  1785. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1786.  
  1787. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23ZD2082 Date: 03/30/89
  1788. From: GEORGE KOFMAN                                         Time: 09:34 am
  1789.   To: PHIL HILL (Rcvd)                                      (Read 176 times)
  1790. Subj: EURICA!
  1791.  
  1792. Phil ---
  1793.  
  1794. tried it 5 min. later, and it works!
  1795. the problem was "\r"...  Thanks a bunch.  George.
  1796. ---------------
  1797. Following thread
  1798.  
  1799. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24313322 Date: 04/03/89
  1800. From: PHIL HILL                                             Time: 12:55 am
  1801.   To: GEORGE KOFMAN (Rcvd)                                  (Read 174 times)
  1802. Subj: R: EURICA!
  1803.  
  1804. Grant has a good point about the lack of speed when using INT 14h for
  1805. serial i/o, but if you're dilligent about monitoring the returned
  1806. status, my opinion is that it should serve fine for a dialer.  I'm
  1807. far from an expert on these things, though, and don't want to put
  1808. that forth as being the last word.
  1809.  
  1810. You didn't mention whether you had trapped that trailing nul -
  1811. on some modems, non-dialable characters can cause problems similar
  1812. to what you describe with your Everex.
  1813.  
  1814. Also, I think that INT 14h will sometimes consider a hardware COM2
  1815. to be COM1 when there is no physical COM1 present on the system.
  1816. On the other hand, if that were the problem the modem probably
  1817. wouldn't be going off-hook.
  1818. ---------------
  1819. ** Current thread: EURICA!
  1820.  
  1821. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 243B0121 Date: 04/03/89
  1822. From: GEORGE KOFMAN                                         Time: 07:02 am
  1823.   To: PHIL HILL (Rcvd)                                      (Read 172 times)
  1824. Subj: R: EURICA!
  1825.  
  1826. Phil ---
  1827.  
  1828. I did add '\' to the string before it gets passed to the modem.
  1829. I works fine on several PCs(386,286,86) and Practical Peripherals Modem
  1830. 2400, but chockes on my Everex 386 with the Multitech 2400EH and Zucker
  1831. 1200. Perhaps it is the speed of the machine, lack of interrupts, or an
  1832. act of God. I dunno. (At this point).
  1833.  
  1834. George.
  1835. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  1836.  
  1837. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23^M0751 Date: 03/31/89
  1838. From: GRANT ELLSWORTH (Leader)                              Time: 06:12 pm
  1839.   To: GEORGE KOFMAN (Rcvd)                                  (Read 181 times)
  1840. Subj: SERIAL COMM/MODEMS
  1841.  
  1842. George, just a word or 2 of caution ... the BIOS calls available for
  1843. the COMM ports in the PC's bios are NOT interrupt driven.  I got really
  1844. stymied by this when I wrote my 1st modem driver 4 yrs ago.  The only
  1845. way I was able to get both receive and send working and synchronized was
  1846. to succumb to the necessity of writing my own interrupt driven modem
  1847. program.  The kernal problem was that it was TOO easy to logjam the
  1848. modem by such things as trying to write to it when there was a character
  1849. waiting in the incoming path.  So, beware of using the bios calls to
  1850. yak via modem ... grant
  1851. ---------------
  1852. Following thread
  1853.  
  1854. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24223123 Date: 04/02/89
  1855. From: GEORGE KOFMAN                                         Time: 02:52 am
  1856.   To: GRANT ELLSWORTH (Rcvd)                                (Read 187 times)
  1857. Subj: R: SERIAL COMM/MODEMS
  1858.  
  1859. Grant ---
  1860.  
  1861. thanks for the reply. Being new to MSC and never seeing TC, it may be more
  1862. of a hassle to "convert" from one to another.
  1863.  I did manage to make it work. However, I now have  a different problem.
  1864. The program dials out just fine on a generic 386, Compaq 286, IBM Mod 30;
  1865. but won't run on my Everex 386/16. It won't dial. It'll sometimes go
  1866. off-hook, but then it dies... Strange world. Any ideas?
  1867.  
  1868. George.
  1869. ---------------
  1870. ** Current thread: SERIAL COMM/MODEMS
  1871.  
  1872. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 242E3466 Date: 04/02/89
  1873. From: GRANT ELLSWORTH (Leader)                              Time: 10:57 am
  1874.   To: GEORGE KOFMAN (Rcvd)                                  (Read 186 times)
  1875. Subj: R: SERIAL COMM/MODEMS
  1876.  
  1877. George, the only idea I've got is that the Everex may be "too fast" for
  1878. your code ... since you are not doing an interrupt driven program.  Other
  1879. things could be interfering with the attempt to do the dial out, but I
  1880. can't think of any right now.    Grant
  1881. ---------------
  1882. ** Current thread: SERIAL COMM/MODEMS
  1883.  
  1884. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 243A3497 Date: 04/03/89
  1885. From: GEORGE KOFMAN                                         Time: 06:58 am
  1886.   To: GRANT ELLSWORTH (Rcvd)                                (Read 184 times)
  1887. Subj: R: SERIAL COMM/MODEMS
  1888.  
  1889. Grant ---
  1890. I also thought of the speed of the machine as the problem. It is fast.
  1891. George.
  1892. ---------------
  1893. ** Current thread: SERIAL COMM/MODEMS
  1894.  
  1895. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24IP3248 Date: 04/14/89
  1896. From: DAVID ROSENBAUM                                       Time: 08:54 pm
  1897.   To: GRANT ELLSWORTH (Rcvd)                                (Read 171 times)
  1898. Subj: R: SERIAL COMM/MODEMS
  1899.  
  1900. Sorry grant this message was really intended for George...
  1901. I have been programming in c on communications issues for about two
  1902. years now .. not that i'm trying to blow my own horn, but I think that
  1903. the easiest solution to what you've been beating on is a commercial
  1904. library.  I dont know if you need to use these functions professionaly
  1905. but a good library should cost about $200.  i have tried several and have
  1906. high marks for most.  If you are programming these items for personal use
  1907. please contact me and i'll send you some code.. I'm not trying to be a
  1908. snob, i just couldn't stand to see the pain that you were going through
  1909. ---------------
  1910. ** Current thread: SERIAL COMM/MODEMS
  1911.  
  1912. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24IR0648 Date: 04/14/89
  1913. From: GRANT ELLSWORTH (Leader)                              Time: 10:10 pm
  1914.   To: GEORGE KOFMAN (Rcvd)                                  (Read 166 times)
  1915. Subj: R: SERIAL COMM/MODEMS
  1916.  
  1917. George, see David Rosenbaum's msg to me  ... he intended it for you.
  1918. BTW, I think there are some good discussions of comm s/w and comm pgming
  1919. over in the Communications Conference / General Topic.   Grant
  1920. ---------------
  1921. ** Current thread: SERIAL COMM/MODEMS
  1922.  
  1923. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24JD1094 Date: 04/15/89
  1924. From: TIM NESHAM                                            Time: 09:18 am
  1925.   To: GRANT ELLSWORTH (Rcvd)                                (Read 162 times)
  1926. Subj: R: SERIAL COMM/MODEMS
  1927.  
  1928.     Also check out the ASYNC MANAGER from Blaise. BEST bang for the buck.
  1929.  
  1930.    Tim
  1931. ---------------
  1932. ** Current thread: SERIAL COMM/MODEMS
  1933.  
  1934. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24LB3233 Date: 04/17/89
  1935. From: GEORGE KOFMAN                                         Time: 07:53 am
  1936.   To: DAVID ROSENBAUM (Rcvd)                                (Read 161 times)
  1937. Subj: R: SERIAL COMM/MODEMS
  1938.  
  1939. David ---
  1940.  
  1941. thanks for your reply. I'd love to have some code... It'll make my life
  1942. alot easier...
  1943.  
  1944. George.
  1945. ---------------
  1946. ** Current thread: SERIAL COMM/MODEMS
  1947.  
  1948. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24MF3357 Date: 04/18/89
  1949. From: DAVID ROSENBAUM                                       Time: 11:55 am
  1950.   To: GEORGE KOFMAN (Rcvd)                                  (Read 163 times)
  1951. Subj: R: SERIAL COMM/MODEMS
  1952.  
  1953. HI GEORGE ... IN ORDER TO KEEP THE VOLUMES OF INFO TO A MINIMUM ..  WHAT
  1954. IS IT THAT YOU'RE TRYING TO DO.  IF ITS JUST MODEM CONTROL I CNA SEND YOU
  1955. A SMALL LIBRARY OF CALLABLE ROUTINES.   ALSO I DONT REMEMBER IF YOURE
  1956. USING TC OR QC.  JUST NEED TO KNOW TO KEEP THE LIB SMALL.   THANKS -DR-
  1957. ---------------
  1958. ** Current thread: SERIAL COMM/MODEMS
  1959.  
  1960. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24MR0681 Date: 04/18/89
  1961. From: GEORGE KOFMAN                                         Time: 10:11 pm
  1962.   To: DAVID ROSENBAUM (Rcvd)                                (Read 154 times)
  1963. Subj: R: SERIAL COMM/MODEMS
  1964.  
  1965. David ---
  1966.  
  1967. spoken like a true gentleman. Thanks for the reply.
  1968. I want to pass a dial string to a modem from within a Clipper program.
  1969. Clipper is written in MS-C 5.xx; so, I need MSC routines with a LARGE
  1970. memory model. If you could only spare the sorce code, too....
  1971.  
  1972. George.
  1973. ---------------
  1974. ** Current thread: SERIAL COMM/MODEMS
  1975.  
  1976. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24MR0864 Date: 04/18/89
  1977. From: GEORGE KOFMAN                                         Time: 10:14 pm
  1978.   To: DAVID ROSENBAUM (Rcvd)                                (Read 163 times)
  1979. Subj: R: SERIAL COMM/MODEMS
  1980.  
  1981. I just realized that you're from Chicago. I spent several days in
  1982. your city last week (Sat-Thu). Baja was great; almost had my car towed on
  1983. Rush St. Beat the tow truck my 5 minutes, but still got a $25 ticket...
  1984.  
  1985. Fun town.
  1986.  
  1987. Geo.
  1988. ---------------
  1989. ** Current thread: SERIAL COMM/MODEMS
  1990.  
  1991. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24PM1283 Date: 04/20/89
  1992. From: DAVID ROSENBAUM                                       Time: 06:21 pm
  1993.   To: GEORGE KOFMAN (Rcvd)                                  (Read 167 times)
  1994. Subj: R: SERIAL COMM/MODEMS
  1995.  
  1996. SOUDS LIKE YOU HAD SOME FUN IN CHICAGO... I'M A NEWCOMMER HERE SO I NEVER
  1997. BEAT THE TOWTRUCK.  THEY HAVE SOME KIND OF STRAGE LAWS ABOUT A SNOW ROUTE
  1998. WHICH IS IN FRONT OF MY APPT.  COST ME $105 AND A HALF DAYS WORK TO FIND
  1999. OUT ABOUT THAT ONE.   ANY TO THE CODE  I HAVE THE  ESSENTIAL C LIBRARY
  2000. VERS 1 AND 2.  SINCE I AM NOW USING VER 2 YOU ARE WELCOME TO IT (VER 1)
  2001. THE ONLY THING THAT VER 2 DOES BETTER IS HANDLE UP TO 8 PORTS. SINCE THIS
  2002. WAS NOT IN YOUR REQUIREMENTS I THINK THAT VER 1 SHOULD HANDLE YOUR REQUEST
  2003. NICELY.  ANYWAY THERE IS A MANUAL AND 4 OR 5 DISKS (MAYBE TOO BIG TO
  2004. DOWNLOAD) .  WHY DONT YOU LEAVE ME A PRIVATE MESSAGE WITH YOUR ADX AND
  2005. I'LL JUST SEND IT TO YOU.  THE LIB HAS MANY NICE (!!) FEATURES FOR SENDING
  2006. MODEM STRINGS, XMODEM, ETC.
  2007. ---------------
  2008. ** Current thread: SERIAL COMM/MODEMS
  2009.  
  2010. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24QD1074 Date: 04/21/89
  2011. From: GEORGE KOFMAN                                         Time: 09:17 am
  2012.   To: DAVID ROSENBAUM (Rcvd)                                (Read 163 times)
  2013. Subj: R: SERIAL COMM/MODEMS
  2014.  
  2015. David ---
  2016.  
  2017. Thanks a bunch! Does this library support MS-C 5.1 (I just received 5.1
  2018. upgrade in the mail!)?
  2019.  
  2020. My address is:
  2021.  
  2022. George Kofman
  2023. 2410 Springdale Road #111
  2024. Waukesha, WI 53186-2709
  2025.  
  2026. "Waukesha" sounds odd, but it's just 15 min. west of Milwaukee.
  2027. I'll be more than happy to pay for s/h.
  2028.  
  2029. Thanks again.
  2030. George.
  2031.  
  2032. P.S.  When is the "Taste of Chicago"?
  2033. ---------------
  2034. ** Current thread: SERIAL COMM/MODEMS
  2035.  
  2036. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24QL1559 Date: 04/21/89
  2037. From: DAVID ROSENBAUM                                       Time: 05:25 pm
  2038.   To: GEORGE KOFMAN (Rcvd)                                  (Read 161 times)
  2039. Subj: R: SERIAL COMM/MODEMS
  2040.  
  2041. George,
  2042.     software was not originally meant for msc 5.1 but should work fine.
  2043. i have some craziness going on this weekend so i shou±àld be able to send
  2044. that mon or so.   on the taste of chicago, it's normally in the hottest
  2045. days of summer , mid july or aug.
  2046. ---------------
  2047. ** Current thread: SERIAL COMM/MODEMS
  2048.  
  2049. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24RG0919 Date: 04/22/89
  2050. From: GEORGE KOFMAN                                         Time: 12:15 pm
  2051.   To: DAVID ROSENBAUM (Rcvd)                                (Read 158 times)
  2052. Subj: R: SERIAL COMM/MODEMS
  2053.  
  2054. David ---
  2055.  
  2056. thanks much for all your help. Sometime next week is fine...
  2057. If there is something *hot* happening in the Windy City, drop me a line.
  2058.  
  2059. George.
  2060. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2061.  
  2062. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 23^S2258 Date: 03/31/89
  2063. From: RONNIE PIERCE                                         Time: 11:37 pm
  2064.   To: ALL                                                   (Read 177 times)
  2065. Subj: LEARNING C
  2066.  
  2067. I have decided to learn, or attempt to learn Turbo C. I have several years
  2068. experience with BASIC and QuickBASIC, but have finally seen the end of
  2069. that road. Can someone point me towards a book that is recommended for
  2070. learning Turbo C? I sure would appreciate it.
  2071.  
  2072. I have written a bbs in quickbasic and my main interest in C will be
  2073. telecommunications and database programming.
  2074. Thanks,
  2075.  
  2076. Ron Pierce
  2077. "The Programmer's Inn"
  2078. 415-967-3484   Mountain View, Ca
  2079. CApal or CAsjo
  2080. ---------------
  2081. Following thread
  2082.  
  2083. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 245A0834 Date: 04/05/89
  2084. From: JOE REED                                              Time: 06:13 am
  2085.   To: RONNIE PIERCE (Rcvd)                                  (Read 178 times)
  2086. Subj: R: LEARNING C
  2087.  
  2088. Like you I am trying to learn Turbo C onmy own.  I have found Complete
  2089. Turbo C, edited by Bonnie Derman and Published by Strawberry Software
  2090. provided a very nice introduction to the subject.  It isn't too heavy to
  2091. get an idea of the language structure.
  2092. Joe
  2093. ---------------
  2094. ** Current thread: LEARNING C
  2095.  
  2096. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24AS0716 Date: 04/06/89
  2097. From: RONNIE PIERCE                                         Time: 11:11 pm
  2098.   To: JOE REED (Rcvd)                                       (Read 175 times)
  2099. Subj: R: LEARNING C
  2100.  
  2101. Thanks for the Reply, Joe. Looks like C will be an endurance test of sort.
  2102. Hopefully I will find the time to get down to business soon. I will check
  2103. out the book and let you know what I think about it.
  2104. Good luck...
  2105. ---------------
  2106. ** Current thread: LEARNING C
  2107.  
  2108. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24BM2196 Date: 04/07/89
  2109. From: JOE REED                                              Time: 06:36 pm
  2110.   To: RONNIE PIERCE (Rcvd)                                  (Read 171 times)
  2111. Subj: R: LEARNING C
  2112.  
  2113. I like the book so far, but it really doesn't cover advanced topics in too
  2114. great of detail. Let you know what the next trip to the bookstore yields.
  2115. ---------------
  2116. ** Current thread: LEARNING C
  2117.  
  2118. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AJM2508 Date: 06/15/89
  2119. From: GRANT ELLSWORTH (Leader)                              Time: 06:41 pm
  2120.   To: ALL                                                   (Read 136 times)
  2121. Subj: LEARNING C
  2122.  
  2123. Whilst I have some opinions on the issue of learning C and the importance
  2124. of prior programming activity, I am wondering:  Have any of you learned
  2125. C as your FIRST programming language of any kind or learnt it after using
  2126. DBASE or Basic, but no other programming or application development tool?
  2127.  
  2128. If your baseline was 0 (no prior programming) or just DBASE or Basic, what
  2129. would you say your most difficult problem was in learning to use C?
  2130.  
  2131. Grant
  2132. ---------------
  2133. ** Current thread: LEARNING C
  2134.  
  2135. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AJQ1813 Date: 06/15/89
  2136. From: ROBERT BALSOVER                                       Time: 09:30 pm
  2137.   To: GRANT ELLSWORTH (Rcvd)                                (Read 137 times)
  2138. Subj: R: LEARNING C
  2139.  
  2140. Grant,
  2141. I learned C after only using Basic, but I used a book that used Basic
  2142. as a guide to C.  This made my first programs look alot like Basic.
  2143. I think that pointers, structures and pointers to pointers..... were
  2144. the hardest part since the Atari (8 bit) I was using had a very
  2145. basic Basic.
  2146. Bob
  2147. ---------------
  2148. ** Current thread: LEARNING C
  2149.  
  2150. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AKD3407 Date: 06/16/89
  2151. From: GRANT ELLSWORTH (Leader)                              Time: 09:56 am
  2152.   To: ROBERT BALSOVER (Rcvd)                                (Read 134 times)
  2153. Subj: R: LEARNING C
  2154.  
  2155. Bob, did you learn C in the Atari, or other, context?  Grant
  2156. ---------------
  2157. ** Current thread: LEARNING C
  2158.  
  2159. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AKR0704 Date: 06/16/89
  2160. From: ROBERT BALSOVER                                       Time: 10:11 pm
  2161.   To: GRANT ELLSWORTH (Rcvd)                                (Read 135 times)
  2162. Subj: R: LEARNING C
  2163.  
  2164. Yes, I learned it with a Atari 800XL, Computes', Compute!'s From Basic
  2165. to C, and K&R.  I used a C interpreter 'Deep Blue C' the was available
  2166. first from the old Atari Exchange then from Antic Magizine.  It was
  2167. limited to integers and char's, no structures, unions or floats.
  2168. Pretty primitive.  I later just kept reading and used UWMilwaukee's
  2169. EVAX while I was enrolled there.
  2170. Bob
  2171. ---------------
  2172. ** Current thread: LEARNING C
  2173.  
  2174. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ALE2209 Date: 06/17/89
  2175. From: GRANT ELLSWORTH (Leader)                              Time: 10:36 am
  2176.   To: ROBERT BALSOVER (Rcvd)                                (Read 136 times)
  2177. Subj: R: LEARNING C
  2178.  
  2179. Thanks for the info.  Now that was an interesting baseline you started
  2180. from and worked with.  I wonder if any body else has had a similarly
  2181. primitive baseline to go learn C from.  Grant
  2182. ---------------
  2183. ** Current thread: LEARNING C
  2184.  
  2185. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMQ0417 Date: 06/18/89
  2186. From: MIKE CODY                                             Time: 09:06 pm
  2187.   To: GRANT ELLSWORTH (Rcvd)                                (Read 134 times)
  2188. Subj: R: LEARNING C
  2189.  
  2190. Well Grant, I would'nt say I have learned C by any means yet, Still toying
  2191. with it. Pointers give me a headache everytime I think about them and I
  2192. still have shivers every time I look at the manuals. Yet I have started
  2193. with the Quick C tutorial, looking at the manual, downloading code for prg
  2194. and looking at it. That's how I learned Dbase..ie I learned it by looking
  2195. at the code in some advanced/basic applications books and cutting,
  2196. modifing, reiventing, hacking, beating, pleading, and a little prayer till
  2197. it did what I wanted to do.  Now I don't fear anything in Dbase, but C is
  2198. another story.
  2199.  
  2200. To make a long story short, I started with "Benton Harbor Basic" on a Z89
  2201. whilst I worked for Heath/Zenith in Benton Harbor, MI. I wrote several
  2202. record keeping prg's for the circut board assemble area I supervised, I
  2203. was hot stuff, had me a Hard sectory built in drive and a dual softsector
  2204. external with a H-125 wide carriage printer....whewww and 64K of Ram!!!
  2205.  
  2206. But I progressed to Lotus 123 macros on the first H-148's and then I left
  2207. Heath. I picked up Condor on another Z89 then went to DB II and now to
  2208. DBIII+ and clipper....interesting how all this happened since 1982 ain't
  2209. it???
  2210.  
  2211. Mike Cody
  2212.  
  2213. ---------------
  2214. ** Current thread: LEARNING C
  2215.  
  2216. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CQN2928 Date: 08/21/89
  2217. From: AL HANSEN                                             Time: 07:48 pm
  2218.   To: MIKE CODY (Rcvd)                                      (Read 119 times)
  2219. Subj: R: LEARNING C
  2220.  
  2221. Milwaukee area residents interested in learning C should note that WCTC in
  2222. Pewaukee will have courses known as C Programming I and II this semester.
  2223. You can find out more by calling them at 691-2910.  The II course started
  2224. on 8/19, but runs until 12/16/89.  The I course starts 10/3/89.  Course
  2225. No. 107-129A (or 129B for II), $79 each.  AL --
  2226. ---------------
  2227. ** Current thread: LEARNING C
  2228.  
  2229. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CVC1799 Date: 08/26/89
  2230. From: JEFF WETTER                                           Time: 08:29 am
  2231.   To: GRANT ELLSWORTH (Rcvd)                                (Read 122 times)
  2232. Subj: LEARNING C
  2233.  
  2234. Grant,
  2235.      I would like to learn to program in C.  I would like to know your
  2236. opinion on how to start out.  I have had some experience in programming in
  2237. Cobol, your favorite language.  After reading some messages in the C
  2238. conference I am going to look at the TUR-C-TU.ZIP file.  Would you
  2239. recommend taking a course at MATC, Marquette, or WCTC?  Thanks  Jeff
  2240. ---------------
  2241. ** Current thread: LEARNING C
  2242.  
  2243. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CVE0736 Date: 08/26/89
  2244. From: GRANT ELLSWORTH (Leader)                              Time: 10:12 am
  2245.   To: JEFF WETTER (Rcvd)                                    (Read 123 times)
  2246. Subj: R: LEARNING C
  2247.  
  2248. Jeff,  COBOL and C are very different types of programming tools.  Having
  2249. taught myself almost all the programming languages I've used except the
  2250. 1st 2 (MAD and 1401 SPS), I can't fairly assess the value of your taking a
  2251. course.  And since I know nothing of the quality of the Schools you
  2252. mention (they are in Wisconsin), I suggest that you wait to see other
  2253. replies from folks in your area who have taken the courses.  There are some
  2254. advantages to taking a class, however.  The structured (we hope)
  2255. instruction imposes a discipline on you which can expedite the learning
  2256. process.  It provides an environment to re-enforce what you learn.  And it
  2257. provides a group of folks with whom you can share the learning and prob-
  2258. lem solving experience.
  2259.  
  2260. The whole idea here is to learn how to learn ...  after that, you can
  2261. teach yourself new, but related, technology faster than that 1st struggle
  2262. in the classroom.
  2263.  
  2264. If you do experiment with the TUR-C-TU.ZIP, please leave a msg here on how
  2265. you liked, or didn't like it.
  2266.  
  2267. Grant
  2268.  
  2269. (PS: you are "forgiven" for tagging COBOL as my favorite language.  And
  2270. all credit to you for scanning the conference message threads so
  2271. thoroughly)
  2272. ---------------
  2273. ** Current thread: LEARNING C
  2274.  
  2275. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CVH0743 Date: 08/26/89
  2276. From: JEFF WETTER                                           Time: 01:12 pm
  2277.   To: GRANT ELLSWORTH (Rcvd)                                (Read 118 times)
  2278. Subj: R: LEARNING C
  2279.  
  2280. Thank you for the quick reply.  After I sent the message I found out you
  2281. were located in MD.  I hope to hear from people in this area on which
  2282. course they feel is good.  Thanks again.  Jeff
  2283. ---------------
  2284. ** Current thread: LEARNING C
  2285.  
  2286. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GJP0931 Date: 12/15/89
  2287. From: BILL HOLLS                                            Time: 08:15 pm
  2288.   To: ALL                                                   (Read 84 times)
  2289. Subj: LEARNING C
  2290.  
  2291. I am beginning to learn c with limited programming experience in basic and
  2292. would be interested in suggestions for tutoring programs, library files,
  2293. good sample programs, etc.  I just unwrapped the quick c shrinkwrap.
  2294. thanks
  2295. ---------------
  2296. ** Current thread: LEARNING C
  2297.  
  2298. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GLN0077 Date: 12/17/89
  2299. From: MICHAEL MCCLUNE                                       Time: 07:01 pm
  2300.   To: BILL HOLLS (Rcvd)                                     (Read 86 times)
  2301. Subj: R: LEARNING C
  2302.  
  2303. Bill
  2304. QC has many example programs in the book "C for yourself which
  2305. are also on the disks that came with QC. Another excellent book
  2306. that is clearly written and easy to understand is The Waite Groups
  2307. Microsoft C... Programming for the PC ISBN# 0-672-22661-8 the
  2308. author of which is Robert Lafore.
  2309. You may also post your question here. There are many C programmers
  2310. eager to help. I cannot help you with any tutorial C programs, I
  2311. have not used any myself.
  2312. Mike
  2313. ---------------
  2314. ** Current thread: LEARNING C
  2315.  
  2316. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GMB1075 Date: 12/18/89
  2317. From: BILL HOLLS                                            Time: 07:17 am
  2318.   To: MICHAEL MCCLUNE (Rcvd)                                (Read 88 times)
  2319. Subj: R: LEARNING C
  2320.  
  2321. Thanks appreciate your help
  2322. ---------------
  2323. ** Current thread: LEARNING C
  2324.  
  2325. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2GS10721 Date: 12/23/89
  2326. From: JODY IRISH                                            Time: 12:12 am
  2327.   To: BILL HOLLS (Rcvd)                                     (Read 84 times)
  2328. Subj: R: LEARNING C
  2329.  
  2330. Bill,
  2331.      Unfortunately, I'm not a frequent user on this conference, but the
  2332. topic leader is very helpful!  There are others here that are the same!
  2333.  
  2334. What pkg do you have?  I use turbo c, a friend uses Microsoft's Quick C,
  2335. and a few accomplices use others.  I did find some tutors in Mahoney's
  2336. file collection.  The turbo c tutor is titled "tctutor.zip".
  2337.  
  2338. Best bet in the file collection is to scan for "tutor" and the pkg name.
  2339.  
  2340. Hope it helps...
  2341. JL Irish
  2342. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2343.  
  2344. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 243B0211 Date: 04/03/89
  2345. From: GEORGE KOFMAN                                         Time: 07:03 am
  2346.   To: PHIL HILL (Rcvd)                                      (Read 165 times)
  2347. Subj: ADDENDUM
  2348.  
  2349. Phill ---
  2350.  
  2351. the last message should read '\r', not '\'.
  2352. George.
  2353. ---------------
  2354. Following thread
  2355.  
  2356. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24410440 Date: 04/04/89
  2357. From: PHIL HILL                                             Time: 01:07 am
  2358.   To: GEORGE KOFMAN (Rcvd)                                  (Read 160 times)
  2359. Subj: R: ADDENDUM
  2360.  
  2361. It wasn't the "\r" that I was talking about.  In the program that you
  2362. posted previously, the "for" loop which sends the characters to the
  2363. modem isn't stopping at the end of the string - it's sending an extra
  2364. nul (ascii 0, used by C to terminate the string).  You can probably
  2365. get away with this on some modems, but many will choke in a manner
  2366. similar to what you've described.  Of the modems you mentioned
  2367. I am only familiar with the Zucker - and I know for a fact that the
  2368. Zucker won't tolerate this.
  2369.  
  2370. As mentioned earlier, I'd suggest that you change the terminating
  2371. condition of the "for" line:
  2372.        for( i=0; d[i]; i++ ) {
  2373.  
  2374. Obviously I can't say for certain that this is causing the problem on
  2375. the Everex, but it seems at least a good possibility.  At any rate,
  2376. it would be a good idea to tighten up the loop, thus ensuring that
  2377. this won't cause problems on some machine in the future.
  2378. ---------------
  2379. ** Current thread: ADDENDUM
  2380.  
  2381. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 244D0607 Date: 04/04/89
  2382. From: GEORGE KOFMAN                                         Time: 09:10 am
  2383.   To: PHIL HILL (Rcvd)                                      (Read 160 times)
  2384. Subj: R: ADDENDUM
  2385.  
  2386. Phil ---
  2387.  
  2388. good point. That may be my problem. I'll give it a try tonight.
  2389. I have access to three different modems; two out of three are on the
  2390. Everex, and they don't work with this program. I guess I'll know soon
  2391. enough.
  2392.  
  2393. George.
  2394. ---------------
  2395. ** Current thread: ADDENDUM
  2396.  
  2397. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24543158 Date: 04/05/89
  2398. From: PHIL HILL                                             Time: 04:52 am
  2399.   To: GEORGE KOFMAN (Rcvd)                                  (Read 161 times)
  2400. Subj: R: ADDENDUM
  2401.  
  2402. Let's hope that (or something equally simple) provides the "fix".
  2403. ---------------
  2404. ** Current thread: ADDENDUM
  2405.  
  2406. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 245C1154 Date: 04/05/89
  2407. From: GEORGE KOFMAN                                         Time: 08:19 am
  2408.   To: PHIL HILL (Rcvd)                                      (Read 158 times)
  2409. Subj: R: ADDENDUM
  2410.  
  2411. Phil ---
  2412.  
  2413. couldn't be so lucky... Tried the "fix": works the same way on hardware
  2414. that it worked on before, dies the same way on the Everex. I dunno.
  2415. Well, Everex is sold anyway. I think I try it on my portable tonight.
  2416.  
  2417. Geo.
  2418. ---------------
  2419. ** Current thread: ADDENDUM
  2420.  
  2421. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24TL3569 Date: 04/24/89
  2422. From: PHIL HILL                                             Time: 05:59 pm
  2423.   To: GEORGE KOFMAN (Rcvd)                                  (Read 150 times)
  2424. Subj: R: ADDENDUM
  2425.  
  2426. George, I ran across a file on another bbs which contains obj and asm
  2427. source to dial a modem from Clipper.  Might be what you need, though
  2428. I didn't have any way to test it - I'm a QuickSilver user.
  2429.  
  2430. I've uploaded it here - look for KLIPDIAL.ZIP.  Hope it solves your
  2431. problem.
  2432. ---------------
  2433. ** Current thread: ADDENDUM
  2434.  
  2435. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UC2054 Date: 04/25/89
  2436. From: GEORGE KOFMAN                                         Time: 08:34 am
  2437.   To: PHIL HILL (Rcvd)                                      (Read 152 times)
  2438. Subj: R: ADDENDUM
  2439.  
  2440. Phil ---
  2441.  
  2442. many thanks!
  2443. I will give it a try.
  2444.  
  2445. George.
  2446. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2447.  
  2448. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 243I3178 Date: 04/03/89
  2449. From: MARTIN SPRIGGS                                        Time: 02:52 pm
  2450.   To: ALL                                                   (Read 200 times)
  2451. Subj: WHY QUICK C?
  2452.  
  2453. I want to get into programming, and have done a little in GWBasic.  Could
  2454. someone please tell me why I should buy Microsoft QuickC rather than
  2455. Microsoft QuickBasic?
  2456.                            Desperately needing advice,
  2457.                                                          Martin
  2458. ---------------
  2459. Following thread
  2460.  
  2461. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 244C0026 Date: 04/04/89
  2462. From: STEVEN KEY                                            Time: 08:00 am
  2463.   To: MARTIN SPRIGGS (Rcvd)                                 (Read 185 times)
  2464. Subj: R: WHY QUICK C?
  2465.  
  2466. Martin,
  2467.  
  2468. I don't use C and don't use basic very much either, but I will offer you
  2469. my opinion - and it's free.
  2470.  
  2471. C will allow you to do most anything you want to do, and usually more
  2472. quickly than Basic .  (The program will be quicker, maybe not the
  2473. programming.)  C doesn't impose as many restrictions as Basic.
  2474.  
  2475. QuickBasic, on the other hand, will be easier to get used to since you
  2476. have already done some Basic.  QuickBasic is a much better language than
  2477. GWBasic and may be all you need.  Going to C from a little Basic could be
  2478. a lot of work - you will need to learn more things to get started.  If you
  2479. plan to do a lot of programming, it will certainly repay the effort,
  2480. though.
  2481.  
  2482. Steven
  2483. ---------------
  2484. ** Current thread: WHY QUICK C?
  2485.  
  2486. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 244K3441 Date: 04/04/89
  2487. From: JOE VINCENT                                           Time: 04:57 pm
  2488.   To: MARTIN SPRIGGS (Rcvd)                                 (Read 186 times)
  2489. Subj: R: WHY QUICK C?
  2490.  
  2491. Martin, I have both QB 4.5 and QC (waiting for 2.0 upgrade to arrive) and
  2492. use both for different purposes.  However, if you MUST select one or the
  2493. other AND you have the ability to master either, I would encourage you to
  2494. get QC.  I'm assuming that you've already picked QC over other versions of
  2495. C from other vendors?
  2496. ---------------
  2497. ** Current thread: WHY QUICK C?
  2498.  
  2499. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24CR2631 Date: 04/08/89
  2500. From: GRANT ELLSWORTH (Leader)                              Time: 10:43 pm
  2501.   To: MARTIN SPRIGGS (Rcvd)                                 (Read 174 times)
  2502. Subj: R: WHY QUICK C?
  2503.  
  2504. Martin, There are many good reasons to choose C instead of Basic for a
  2505. programming tool.  But, you may find it easier learning some elementary
  2506. rules about program construction and implementation using Basic instead of
  2507. C, or PASCAL.  However, I think PASCAL is a better place to start than
  2508. either C or Basic, although you already have some familiarity with Basic.
  2509. Borland's Turbo Pascal 5.0 is a good programming tool and a good place to
  2510. start learning some useful programming techniques.  After you feel you
  2511. have a good handle on programming ideas, you should THEN go on to C -
  2512. since it is widely used in Micro programing and will become a more prom-
  2513. inent language for programming in all computing environments over the
  2514. next few years.  The only other direction to seriously consider is a]
  2515. Database language like dBASE (or a "clone") or some SQL-like database-
  2516. oriented programming tool.  Grant
  2517.  
  2518. ps: for C programming, I like Turbo C 2.0 --- and I think it gives much
  2519. more bang for the $$ than the microsoft QC product.
  2520. ---------------
  2521. ** Current thread: WHY QUICK C?
  2522.  
  2523. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24CR2894 Date: 04/08/89
  2524. From: GRANT ELLSWORTH (Leader)                              Time: 10:48 pm
  2525.   To: JOE VINCENT (Rcvd)                                    (Read 175 times)
  2526. Subj: R: WHY QUICK C?
  2527.  
  2528. Joe, Have you even considered any of the Borland Language offerings?  I
  2529. know there is a price advantage since you have been buying upgrades, rather
  2530. than orignal 1st-time offerings.   Other than that, what do YOU see as the
  2531. compelling reason to go with MS C language products?  Grant
  2532. ---------------
  2533. ** Current thread: WHY QUICK C?
  2534.  
  2535. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24DK2101 Date: 04/09/89
  2536. From: JOE VINCENT                                           Time: 04:35 pm
  2537.   To: GRANT ELLSWORTH (Rcvd)                                (Read 174 times)
  2538. Subj: R: WHY QUICK C?
  2539.  
  2540. Actually, I do have Turbo C and Turbo BASIC, in addition to QC, QB and
  2541. MSC.  QB is (date and time stamp right now) much better than TB.  With
  2542. QC 2.0, I'm partial to QC over TC, but I'm not a Microsoft bigot and will
  2543. unashamedly shift my allegiance to TC if they one-up MS with TC's next
  2544. release.
  2545.  
  2546. The guy asking the question appeared to have already narrowed his choices
  2547. to QB and QC, so I just answered his question as posed.
  2548.  
  2549. Have you tried QC 2.0 with manual-less context-sensitive on-line help and
  2550. full support for all memory models?  It's very impressive!
  2551. ---------------
  2552. ** Current thread: WHY QUICK C?
  2553.  
  2554. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24DS0815 Date: 04/09/89
  2555. From: GRANT ELLSWORTH (Leader)                              Time: 11:13 pm
  2556.   To: JOE VINCENT (Rcvd)                                    (Read 170 times)
  2557. Subj: R: WHY QUICK C?
  2558.  
  2559. Joe, QB MAY be a better implementation of Basic, since MS has been in the
  2560. BASIC court for a LONG time.  I have no opinion on this since it has been
  2561. a long time since I had any contact with a BASIC anything.  No I haven't
  2562. tried QC 2.0.  I got so frustrated with the QC in M$C 5.0 that I junked
  2563. the whole thing for WC6.5 as my big duty C system optimizing tool.  I
  2564. still do all development and testing w/TC and go to WC6.5 only when I
  2565. have a critical optimization problem.   Grant
  2566. ---------------
  2567. ** Current thread: WHY QUICK C?
  2568.  
  2569. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EM0595 Date: 04/10/89
  2570. From: JOE VINCENT                                           Time: 06:09 pm
  2571.   To: GRANT ELLSWORTH (Rcvd)                                (Read 167 times)
  2572. Subj: R: WHY QUICK C?
  2573.  
  2574. Grant, you might actually like QB 4.5.  It's very C-like in its
  2575. implementation of prototypes for functions and procedures, has SELECT CASE
  2576. and other C constructs.  It's still not as good as BetterBASIC was, even
  2577. though Ivar Wold, former president and top technical mind at Summit
  2578. Software, went to work for MS after Summit went Chapter 7.  I develop
  2579. products for users who program in a variety of environments, including QB,
  2580. so I am compelled to use products which I might otherwise not touch.
  2581.  
  2582. Yep, QC 1.0 was pretty rudimentary.  QC 2.0 is almost a different product.
  2583. From the "integrated development environment", one can fiddle with just
  2584. about every option it has, including optimization level.  Most of what I
  2585. would imagine you like about TC is in QC 2.0.
  2586. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2587.  
  2588. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 244P1742 Date: 04/04/89
  2589. From: TOM NOWALIS                                           Time: 08:29 pm
  2590.   To: ALL                                                   (Read 164 times)
  2591. Subj: WHAT IS PROTOTYPING?
  2592.  
  2593. I am confused. Can any of you C-Programmers out their explain prototyping
  2594. to me. What is it used for?  How is it used?  I have several C Programming
  2595. books but none explain this subject very adequately.
  2596. ---------------
  2597. Following thread
  2598.  
  2599. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 244Q2474 Date: 04/04/89
  2600. From: HENRIK SCHMIEDICHE                                    Time: 09:41 pm
  2601.   To: TOM NOWALIS (Rcvd)                                    (Read 164 times)
  2602. Subj: R: WHAT IS PROTOTYPING?
  2603.  
  2604.     Tom,
  2605. prototyping was not part of the original C language and was introduced
  2606. mainly for the benefit of 1-pass compilers (there some other reasons.)
  2607. When the compiler encounters a call to a function then the C compiler
  2608. has no way of knowing what the type-definitions of the variables are
  2609. (unless that function has already been processed). This is a problem
  2610. because C does automatic type conversions as neccesary. For example,
  2611. assume you have the following code in your C program:
  2612.  
  2613.        x = get_a_char (34, 12.4);
  2614.  
  2615. The C compile needs to know 1) what kind of value get_a_char will
  2616. return (int, float, char?) so that it can convert the return value
  2617. to whatever x happens to be. 2) it needs to know if the first argument
  2618. 34 is an interger, float, char or something else (the same goes
  2619. with the second argument) so that it can produce the correct code.
  2620. This problem is not a problem with language like Pascal that have strict
  2621. type checking. This is why you have a prototype at the beginning of your
  2622. program to tell the compiler what the arguments of your function(s)
  2623. are going to be. For example for the above function get_a_char it
  2624. may be:
  2625.  
  2626.        int get_a_char (int, int);
  2627.  
  2628. telling the compiler that all arguments associated with the functions
  2629. get_a_char are integers. If you do not prototype a function most
  2630. compilers assume your are sending ints and often that will be OK
  2631. but sometime that can wreck havock. Try to following code with
  2632. and without a protoype:
  2633.  
  2634. #include <stdio.h>
  2635.  
  2636. void main () {
  2637.   print_number (12.5);
  2638. }
  2639.  
  2640. void print_number (int x) {
  2641.   printf ("%d\n", x);
  2642. }
  2643. ---------------
  2644. ** Current thread: WHAT IS PROTOTYPING?
  2645.  
  2646. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24BQ0459 Date: 04/07/89
  2647. From: TOM NOWALIS                                           Time: 09:07 pm
  2648.   To: HENRIK SCHMIEDICHE (Rcvd)                             (Read 156 times)
  2649. Subj: R: WHAT IS PROTOTYPING?
  2650.  
  2651. Thanks much Henrik for the info on prototyping. It is well appreciated. I
  2652. know it probably cost you a bundle calling from College Station, TX. If I
  2653. can do anything for you drop me a line.
  2654. ---------------
  2655. ** Current thread: WHAT IS PROTOTYPING?
  2656.  
  2657. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24BQ1216 Date: 04/07/89
  2658. From: HENRIK SCHMIEDICHE                                    Time: 09:20 pm
  2659.   To: TOM NOWALIS (Rcvd)                                    (Read 154 times)
  2660. Subj: R: WHAT IS PROTOTYPING?
  2661.  
  2662.     Tom,
  2663. I'm using PC Pursuit so its no problem. Glad I was able to help.
  2664.                                      - Henrik
  2665. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2666.  
  2667. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24CI1245 Date: 04/08/89
  2668. From: LOWELL DENNING                                        Time: 02:20 pm
  2669.   To: RONNIE PIERCE (Rcvd)                                  (Read 163 times)
  2670. Subj: C LEARNING
  2671.  
  2672. A new book just came out this week from Howard Sams, Inc. called C:Step by
  2673. Step by the Mitchell Waite Group and it is really outstanding.  It teaches
  2674. for all ansi-compatible C products.  This is the successor book to C
  2675. Primer Plus which has been extremely popular.
  2676.        Lowell Denning
  2677. ---------------
  2678. Following thread
  2679.  
  2680. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FB0705 Date: 04/11/89
  2681. From: RONNIE PIERCE                                         Time: 07:11 am
  2682.   To: LOWELL DENNING (Rcvd)                                 (Read 148 times)
  2683. Subj: R: C LEARNING
  2684.  
  2685. Thanks much, Lowell. I will definitely check this out. BASIC has been
  2686. nice, but I am tired of working around the limitations..
  2687. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2688.  
  2689. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24D31586 Date: 04/09/89
  2690. From: AMINUDDIN AHMAD                                       Time: 03:26 am
  2691.   To: GRANT ELLSWORTH (Rcvd)                                (Read 156 times)
  2692. Subj: DDJ-MORE.ZIP
  2693.  
  2694. I have downloaded the file "ddj-more.zip," a code I've been looking for a
  2695. looooong time. When I compile using TC 2.0, I found 4 errors. It cannot
  2696. find 3 external function. I think there is another file missing fron the
  2697. ZIP file. Please check, I really need this code.
  2698. Thanks.
  2699. --->Amin.
  2700. ---------------
  2701. Following thread
  2702.  
  2703. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24DS0474 Date: 04/09/89
  2704. From: GRANT ELLSWORTH (Leader)                              Time: 11:07 pm
  2705.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 154 times)
  2706. Subj: R: DDJ-MORE.ZIP
  2707.  
  2708. Amin, I will check it out later, but you might find your solution in that
  2709. you are using TC ,,, and the code was intended for MSC.  Maybe looking for
  2710. anologous functions with similar names in the TC Ref Manual would help. GE
  2711. ---------------
  2712. ** Current thread: DDJ-MORE.ZIP
  2713.  
  2714. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EQ1034 Date: 04/10/89
  2715. From: DENNIS MEILICKE                                       Time: 09:17 pm
  2716.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 148 times)
  2717. Subj: R: DDJ-MORE.ZIP
  2718.  
  2719. Amin.,
  2720.  
  2721. The external functions you are missing are in the TOOLS.C file included in
  2722. the ZIP file.  You have to compile this to TOOLS.OBJ, then link it in with
  2723. MORE.OBJ to get the .EXE file.
  2724.  
  2725. The easiest way to do the above is to use a "project file" when you 
  2726. compile the program.  This project file will contain two lines; one will
  2727. contain the word "tools", the other the word "more".  Enter the name of
  2728. the project file in the "project name" entry of the project menu, then do
  2729. a "make" (the F9 key).  Everything should be OK now.
  2730.  
  2731. I reloaded DDJ-MORE with a project file - you might want to look at that
  2732. if my description was un-clear.
  2733.  
  2734. Sorry about the trouble...
  2735.  
  2736. Dennis
  2737. ---------------
  2738. ** Current thread: DDJ-MORE.ZIP
  2739.  
  2740. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24F10113 Date: 04/11/89
  2741. From: AMINUDDIN AHMAD                                       Time: 01:01 am
  2742.   To: DENNIS MEILICKE (Rcvd)                                (Read 146 times)
  2743. Subj: R: DDJ-MORE.ZIP
  2744.  
  2745. I think I have tried using the project file, and there are still errors.
  2746. It couldn't find 3 functions. When I checked these functions in TOOLS.C, I
  2747. can't find it. Perhaps I missed it. But anyway, I will download it again,
  2748. and give it a few more shots. Thanks for your message.
  2749. ps: Is the code for TC2.0, because thats what I'm using.
  2750. --->Amin.
  2751. ---------------
  2752. ** Current thread: DDJ-MORE.ZIP
  2753.  
  2754. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24F13375 Date: 04/11/89
  2755. From: AMINUDDIN AHMAD                                       Time: 12:56 am
  2756.   To: GRANT ELLSWORTH (Rcvd)                                (Read 146 times)
  2757. Subj: R: DDJ-MORE.ZIP
  2758.  
  2759. That figures.... compiling MSC on a TC. This means that I have to change a
  2760. few codes. Thanks for your help. But if you do have an idea on how to make
  2761. it work on TC, please do let me know. Thanks.
  2762. --->Amin.
  2763. ---------------
  2764. ** Current thread: DDJ-MORE.ZIP
  2765.  
  2766. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FB2971 Date: 04/11/89
  2767. From: DENNIS MEILICKE                                       Time: 07:49 am
  2768.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 143 times)
  2769. Subj: R: DDJ-MORE.ZIP
  2770.  
  2771. Amin.,
  2772.  
  2773. Yes, the code is for TC2.0.  That is what I used to compile it.  If you
  2774. still have trouble compiling it, leave me a message with the actual error
  2775. messages, and I'll try to figure it out.
  2776.  
  2777. Good luck...
  2778.  
  2779. Dennis
  2780. ---------------
  2781. ** Current thread: DDJ-MORE.ZIP
  2782.  
  2783. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FG2265 Date: 04/11/89
  2784. From: GRANT ELLSWORTH (Leader)                              Time: 12:37 pm
  2785.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 148 times)
  2786. Subj: R: DDJ-MORE.ZIP
  2787.  
  2788. Yes, I do have some idea  of what needs to be done ... It would be very
  2789. helpful if you would list the undefined functions reported by the link
  2790. step.  If you can't easily infer the TC equivalent of the undefined MSC
  2791. functions, maybe I can.
  2792.  
  2793. Once identified, these function calls can be "fixed up" using #defines
  2794. to solve incongruities ...  e.g.
  2795.  
  2796. /* tc -> memmove(target,source,size) (?) */
  2797. /* msc -> movemem(target,size,source) (?) */
  2798. /* the above may NOT be accurate or precisely true but will serve the
  2799.    example */
  2800.  
  2801. #define movemem(a,b,c) memmove(a,c,b) /* define macro subst */
  2802.  ....
  2803.     movemem(mytarget,mysource,mysize); /* original msc code(?) */
  2804.  
  2805. WARNING ... DON'T TAKE THIS EXAMPLE LITERALLY! I don't have my tc lib
  2806. ref manual handy.  Also, MSC assumes an implied ptr where TC requires
  2807. explicit usage.  so, the above #define example may have to be coded ...
  2808.  
  2809. #define movemem(a,b,c) memmove((&)a,c,(&)b)
  2810.  
  2811. Hope this gets you pointed in right direction ...  It's typical that
  2812. #define's are used to workaround cross compiler source movement.
  2813.  
  2814. Grant
  2815. ---------------
  2816. ** Current thread: DDJ-MORE.ZIP
  2817.  
  2818. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FG3507 Date: 04/11/89
  2819. From: GRANT ELLSWORTH (Leader)                              Time: 12:58 pm
  2820.   To: DENNIS MEILICKE (Rcvd)                                (Read 145 times)
  2821. Subj: R: DDJ-MORE.ZIP
  2822.  
  2823. Dennis, I can't find ddj-more.zip in Mahoney ... where'd it go?  Grant
  2824. ---------------
  2825. ** Current thread: DDJ-MORE.ZIP
  2826.  
  2827. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FN1897 Date: 04/11/89
  2828. From: DENNIS MEILICKE                                       Time: 07:31 pm
  2829.   To: GRANT ELLSWORTH (Rcvd)                                (Read 150 times)
  2830. Subj: R: DDJ-MORE.ZIP
  2831.  
  2832. Grant,
  2833.  
  2834. It's there - I just checked (you had me worried).  I added the .PRJ file
  2835. and re-uploaded it.  Maybe you looked between the time I deleted it, and
  2836. the time I re-uploaded.  Of course, that process only took about five
  2837. minutes, so you must have been very lucky!
  2838.  
  2839. Dennis
  2840. ---------------
  2841. ** Current thread: DDJ-MORE.ZIP
  2842.  
  2843. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24GH1975 Date: 04/12/89
  2844. From: GRANT ELLSWORTH (Leader)                              Time: 01:32 pm
  2845.   To: DENNIS MEILICKE (Rcvd)                                (Read 151 times)
  2846. Subj: R: DDJ-MORE.ZIP
  2847.  
  2848. Yes,  I seem to have proclivity for being in the wrong place at the wrong
  2849. time....  I did find it later.  For a while I thought my eyes were going
  2850. worse.  Thx for clarifying.   Grant
  2851. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2852.  
  2853. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24DK2148 Date: 04/09/89
  2854. From: NEILL DOERTENBACH                                     Time: 04:35 pm
  2855.   To: ALL                                                   (Read 156 times)
  2856. Subj: C SHAREWARE COMPILERS
  2857.  
  2858. I am finally learning to program in C, and have a question or two - number
  2859. 1, is there a good shareware C compiler? I've seen 4 on this board -
  2860. Small-c, C_comp, YACC and CPC - which one is best?  Or, would I be better
  2861. off to buy a commercial compiler?  My use will be strictly 8086 stuff, for
  2862. hobby use, real-world control, etc.  Any comments or help would be
  2863. appreciated!   Thanks!
  2864.                          N
  2865.                           K
  2866.                            D
  2867. ---------------
  2868. Following thread
  2869.  
  2870. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FP1939 Date: 04/11/89
  2871. From: NEILL DOERTENBACH                                     Time: 08:32 pm
  2872.   To: GRANT ELLSWORTH (Rcvd)                                (Read 159 times)
  2873. Subj: R: C SHAREWARE COMPILERS
  2874.  
  2875. Thanks for the info, Grant, I'll snoop around a little bit for an ad for
  2876. it.
  2877. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  2878.  
  2879. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24ED0364 Date: 04/10/89
  2880. From: MICHAEL MCCLUNE                                       Time: 09:06 am
  2881.   To: GRANT ELLSWORTH (Rcvd)                                (Read 155 times)
  2882. Subj: QC HELP
  2883.  
  2884. Grant, since your the leader of this conf. I am directing this to
  2885. you. I need a way to reinitialize an array in qc. The reason for
  2886. this is a memory saving measure. What I am doing is getting
  2887. input from a user and then saving that info to disk. Instead
  2888. of incrementing the array I would like to reset the array to
  2889. all NULLs and then reget the info. The array is 142 bytes in
  2890. size but this person only has 384k of memory. Any help is
  2891. appreciated.
  2892. Mike
  2893. ---------------
  2894. Following thread
  2895.  
  2896. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EM0261 Date: 04/10/89
  2897. From: GRANT ELLSWORTH (Leader)                              Time: 06:04 pm
  2898.   To: MICHAEL MCCLUNE (Rcvd)                                (Read 152 times)
  2899. Subj: R: QC HELP
  2900.  
  2901. Mike, I will have to shoot a little blind on this since you gave me no
  2902. specifics on the 142 byte array structure ...  here is my suggestion ..
  2903.  
  2904. struct stuff_on_disk  { var1 , ... , varN };
  2905.  
  2906. unsigned char * clear_stuff;
  2907.  .
  2908.  .
  2909. /* code to clear out array */
  2910.  
  2911.  /* i will be used as index to 142 byte array = sizeof(stuff_on_disk); /
  2912.           /* I assume that size of 'stuff_on_disk' is 142 */
  2913.   clear_stuff = &stuff_on_disk;  /* set addr to be addr of rcv area */
  2914.   for(i=0; i < sizeof(stuff_on_disk); i++)
  2915.       clear_stuff[i] = 0x00;
  2916. /* the 'for ...' loop will clear the area */
  2917. /* then you can re-fill the area with the input from the user and
  2918.     re-write to disk as needed */
  2919.  
  2920. Grant
  2921. ---------------
  2922. ** Current thread: QC HELP
  2923.  
  2924. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EM2439 Date: 04/10/89
  2925. From: MICHAEL MCCLUNE                                       Time: 06:40 pm
  2926.   To: GRANT ELLSWORTH (Rcvd)                                (Read 147 times)
  2927. Subj: R: QC HELP
  2928.  
  2929. Grant for a blind shot I believe you have shown me how to do what I
  2930. wanted. Thanks for your help and in the future I'll try to be
  2931. more specific.
  2932. Thanks again
  2933. Mike
  2934. ---------------
  2935. ** Current thread: QC HELP
  2936.  
  2937. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EQ0808 Date: 04/10/89
  2938. From: MICHAEL MCCLUNE                                       Time: 09:13 pm
  2939.   To: GRANT ELLSWORTH (Rcvd)                                (Read 151 times)
  2940. Subj: QC HELP
  2941.  
  2942. Grant I guess that wasn't what I had in mind but how would you
  2943. know that. Here are some more specifics.
  2944. struct so_so { member_list []........} array [1]; /* 1 copy in mem */
  2945. array [0].some_members  /* get some char stuff */
  2946. fopen (file, file_handle);/* open file */
  2947. fwrite (&array [0], sizeof (*array), 1, file_handle);
  2948. /* or some such thing as above */
  2949. /* now I want to clear the array [0] that contains the old data in
  2950. memory */
  2951. Any ideas? Thanks!
  2952. Mike
  2953. ---------------
  2954. ** Current thread: QC HELP
  2955.  
  2956. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FG1554 Date: 04/11/89
  2957. From: GRANT ELLSWORTH (Leader)                              Time: 12:25 pm
  2958.   To: MICHAEL MCCLUNE (Rcvd)                                (Read 145 times)
  2959. Subj: R: QC HELP
  2960.  
  2961. Use the same technique I described in previous msg ... to wit:
  2962.  
  2963. unsigned char * clear_stuff
  2964.   ...
  2965.   int i;
  2966.    ...
  2967.   clear_stuff = (char *)&array[0].some_members
  2968.   for (i=0; i<sizeof(some_members); i++)
  2969.      clear_stuff[i] = 0x00;
  2970.  
  2971. Grant
  2972. ---------------
  2973. ** Current thread: QC HELP
  2974.  
  2975. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FM1534 Date: 04/11/89
  2976. From: MICHAEL MCCLUNE                                       Time: 06:25 pm
  2977.   To: GRANT ELLSWORTH (Rcvd)                                (Read 151 times)
  2978. Subj: QC HELP
  2979.  
  2980. Grant
  2981. Thank you for the pointer, ugh, on my poser. It worked well
  2982. with combining the two pieces of code you showed me. Heres
  2983. what it looked like after I had played with it.
  2984. unsigned char * clear;
  2985. int i;
  2986. clear = (char *)&array [0];
  2987. for (i = 0; i < sizeof (*array); i++);
  2988. clear [i] = 0x00;
  2989. I also hope this may be of help to anyone else new to "C".
  2990. By the way I wanted to clear the entire array [0] which is
  2991. what the above segment does
  2992. Thank You much
  2993. Mike
  2994. ---------------
  2995. ** Current thread: QC HELP
  2996.  
  2997. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24M10403 Date: 04/18/89
  2998. From: TOM FELLER                                            Time: 12:06 am
  2999.   To: MICHAEL MCCLUNE (Rcvd)                                (Read 146 times)
  3000. Subj: R: QC HELP
  3001.  
  3002. I think there may be a better way to clear out memory.
  3003. Check out the setmem library function.
  3004. \Tom Feller\
  3005. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3006.  
  3007. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24ED0931 Date: 04/10/89
  3008. From: MIKE CODY                                             Time: 09:15 am
  3009.   To: ALL                                                   (Read 152 times)
  3010. Subj: DBASE TO "C" XLATER
  3011.  
  3012. Message CC'd to:
  3013.      ALL
  3014.      GRANT ELLSWORTH
  3015.  
  3016.  
  3017.  Good day all, I am a DB3+ prg'r with a more than passing interest in "C".
  3018.  I have seen advertised in the Programmers Connection a program that is
  3019.  "suspposed" to translate a DB3+ application over into compiable "C" code.
  3020.  Now being skeptical of miricles, I would wonder if any of you fine folks
  3021.  have ever seen or used this Rascal.....
  3022.  
  3023.  It's called:  DBx (dbase at the speed of C) sold by PC Exchange
  3024.  
  3025.  It's supposed to link to other libraries, etc...I can't believe it is
  3026.  true, but if someone out there has experience with such a beast...Please
  3027.  drop me a line...
  3028.  
  3029.  Mike Cody
  3030.  
  3031. ---------------
  3032. Following thread
  3033.  
  3034. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24EL2050 Date: 04/10/89
  3035. From: GRANT ELLSWORTH (Leader)                              Time: 05:34 pm
  3036.   To: MIKE CODY (Rcvd)                                      (Read 153 times)
  3037. Subj: R: DBASE TO "C" XLATER
  3038.  
  3039. Mike, I have seen more than 1 DB3+ ---> C translator advertised, but I
  3040. never used or had use for one.  There are also DB3+ compilers, such as
  3041. FoxBase, Clipper, QuickSilver(?), etc.., which supposedly produce equiv-
  3042. alent execution time augmentation as would a conversion to C.  Those
  3043. db3+ compilers offer another alternative to translating source to C for
  3044. compilation.  The only db3+ compiler I have any exposure to is Clipper.
  3045. I was favorably impressed with the improvement in throughput - but the
  3046. .exe was quite large.  Re: "Linking with other libraries" ... I don't
  3047. understand what precisely it is that you so strongly doubt.  Once you
  3048. have some usable, editable C source, you can modify, butcher, hack,
  3049. etc., that source to use whatever libraries you find appropriate for your
  3050. application.  So, please clarify your "don't believe .." reference.
  3051.  
  3052. It's in your court.    Regards, Grant
  3053. ---------------
  3054. ** Current thread: DBASE TO "C" XLATER
  3055.  
  3056. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FC1847 Date: 04/11/89
  3057. From: MIKE CODY                                             Time: 08:30 am
  3058.   To: GRANT ELLSWORTH (Rcvd)                                (Read 151 times)
  3059. Subj: R: DBASE TO "C" XLATER
  3060.  
  3061. Grant...
  3062.  
  3063. Thanx for the reply, I am an avid Clipper user and do some utilities in
  3064. Quick "C" for my DB3 applications. I too wasn't too skeptical about the
  3065. ability to translate, just as how much of the Xlate was good code. I have
  3066. worked with a couple of Basic-> C Xlaters that gave me about 80% good
  3067. code, with some major missing pieces. I took up "C" about 4 months ago to
  3068. eventually replace DB3 as my developmental environment. I had been using
  3069. QuickBasic 4.0 for most of my non-DB applications and hit it's limits.
  3070.  
  3071. With "C" I am moving twoard my utltimate goal of a complete application in
  3072. from DB to reporting with all "C" code. I am completely self taught
  3073. starting on an H-89 with Benton Harbor Basic so long ago. My point being
  3074. that if this prg. will Xlate with reasonable efficiency, it would speed my
  3075. steps twoard this goal. I am always loath to lay 800-900 bucks for an
  3076. item I have only a salesmens word on.
  3077.  
  3078. The biggest advantage of this of course, as you point out, is the ability
  3079. to hack, change, link, the source. I am also curious of how to construct
  3080. the actual DB files. I understand from the add, you link in Libraries set
  3081. up to access DB3 files structure. As this is a weak point for me at this
  3082. time I was naturally curious as to what other thought.
  3083.  
  3084. Anyways, I appreciate any and all opinions on this subject. I will be an
  3085. avid reader of this forum and contribute when I can...
  3086.  
  3087. Mike Cody
  3088. ---------------
  3089. ** Current thread: DBASE TO "C" XLATER
  3090.  
  3091. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FG2704 Date: 04/11/89
  3092. From: GRANT ELLSWORTH (Leader)                              Time: 12:45 pm
  3093.   To: MIKE CODY (Rcvd)                                      (Read 145 times)
  3094. Subj: R: DBASE TO "C" XLATER
  3095.  
  3096. Only thought I have is that you should assure yourself of a back out
  3097. position by requiring that the vendor provide you with a refund policy
  3098. You should be able to return the xlator to vendor and get your money
  3099. back if the system does NOT adquately translate your db3 code AND you
  3100. can provide proof.  Also, the vendor's refund policy should better be
  3101. a "no questions asked" or you need some kind of "time is of the essence"
  3102. for performance --- that is, software produces usable translation within
  3103. x hrs of your time and effort.  No sense in having to dinker with code
  3104. for 2 months after you ran it thr the translator in order to make it work!
  3105.  
  3106. grant
  3107. ---------------
  3108. ** Current thread: DBASE TO "C" XLATER
  3109.  
  3110. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24G11979 Date: 04/12/89
  3111. From: MIKE CODY                                             Time: 12:33 am
  3112.   To: GRANT ELLSWORTH (Rcvd)                                (Read 147 times)
  3113. Subj: R: DBASE TO "C" XLATER
  3114.  
  3115. My fears exactly. I would not want to spend all my time fixing up the
  3116. xlated code so it would work. I am investigating this further, and have
  3117. requested some literture and a demo disk from the manufacture. I will be
  3118. letting you know what I find out.
  3119.  
  3120. Mike Cody
  3121. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3122.  
  3123. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24FR3098 Date: 04/11/89
  3124. From: RICHARD KOSARZYCKI                                    Time: 10:51 pm
  3125.   To: ALL                                                   (Read 168 times)
  3126. Subj: TURBO C OVERLAYS?
  3127.  
  3128. I recently purchased TC 2.0 and was curious to see if Borland
  3129. included any extensions to handle overlays similar to TP.
  3130. As far as I can tell, they didn't.  Has anyone implemented overlays
  3131. or know of any technique to simulate them?
  3132. ---------------
  3133. Following thread
  3134.  
  3135. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24JD0865 Date: 04/15/89
  3136. From: TIM NESHAM                                            Time: 09:14 am
  3137.   To: RICHARD KOSARZYCKI (Rcvd)                             (Read 168 times)
  3138. Subj: R: TURBO C OVERLAYS?
  3139.  
  3140.    We recently had a need for overlays and were disappointed that TC
  3141. doesn't have that capability. I was curious enough to call Borland and ask
  3142. about overlays in the future but they were hush-hush about it. They did
  3143. tell me that the Turbo Debugger is overlayed so I asked which linker they
  3144. used. They wouldn't tell me that. So I asked them to recommend a overlay
  3145. linker and the recommended PLINK. Hmmmm.... Any guesses as to what TD
  3146. uses?  I didn't know this but PLINK is written by the same company that
  3147. writes the most popular BIOS. Phoenix.  We had tried RTLINK and MSC (both)
  3148. but PLINK was the better performer.
  3149.  
  3150.     Ti m
  3151. ---------------
  3152. ** Current thread: TURBO C OVERLAYS?
  3153.  
  3154. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24JD2222 Date: 04/15/89
  3155. From: DENNIS MEILICKE                                       Time: 09:37 am
  3156.   To: RICHARD KOSARZYCKI (Rcvd)                             (Read 168 times)
  3157. Subj: R: TURBO C OVERLAYS?
  3158.  
  3159. Richard,
  3160.  
  3161. Check out OVL30.ZIP in the Mahoney collection.  It is an overlay manager
  3162. that works with TC.  You will need a copy of the MicroSoft linker, but
  3163. that usually comes with DOS, so that shouldn't be a problem.
  3164.  
  3165. Of course, you could always simulate overlays using spawn(), but the
  3166. inter-process communication can (sometimes) get a little tricky.
  3167.  
  3168. Good luck...
  3169.  
  3170. Dennis
  3171. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3172.  
  3173. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24GQ2650 Date: 04/12/89
  3174. From: AMINUDDIN AHMAD                                       Time: 09:44 pm
  3175.   To: ALL                                                   (Read 175 times)
  3176. Subj: TURBO PASCAL TO TURBO C
  3177.  
  3178. Is there a shareware code that converts Turbo pascal code to Turbo C? I
  3179. know that there is one for translating TP to QC (which is not doing its
  3180. job well), but is there really one available. I am trying to avoid to
  3181. rewrite my TP code all over again in TC. Someone... do let me know.
  3182. --->Amin.
  3183. ---------------
  3184. Following thread
  3185.  
  3186. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24HQ2960 Date: 04/13/89
  3187. From: GRANT ELLSWORTH (Leader)                              Time: 09:49 pm
  3188.   To: AMINUDDIN AHMAD (Rcvd)                                (Read 170 times)
  3189. Subj: R: TURBO PASCAL TO TURBO C
  3190.  
  3191. Amin, look in the mahoney collection for TPTC17x.ZIP from May of last
  3192. year.   It is a very good package.... not 100% effective, but the best
  3193. of a lot that were in circulation last year by a good margin.  If you
  3194. don't find it there, check on-line at its home base --- Sam Smith's
  3195. Tool Shop in Phoenix AZ (602-279-2673) - pcpursuitable, but a very busy
  3196. line ... takes about 1 hr of redialing to get in ... sometimes a lot
  3197. more.    Sam stopped public enhancements of the package because of a
  3198. commercial deal in slow works, but the last shareware should be available.
  3199.  
  3200. Grant
  3201. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3202.  
  3203. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24KF0732 Date: 04/16/89
  3204. From: DAVID KRILL                                           Time: 11:12 am
  3205.   To: ALL                                                   (Read 151 times)
  3206. Subj: QC OR TC
  3207.  
  3208. What do most people here use and like:  Quick C or Turbo C?  What is the
  3209. easiest to learn (no prior C experience)?  And what is more powerful?
  3210. What is better for the long run?  Also, can C do anything that PASCAL or
  3211. BASIC can't do?  Thanks!
  3212. ---------------
  3213. Following thread
  3214.  
  3215. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24KG2092 Date: 04/16/89
  3216. From: GRANT ELLSWORTH (Leader)                              Time: 12:34 pm
  3217.   To: DAVID KRILL (Rcvd)                                    (Read 153 times)
  3218. Subj: R: QC OR TC
  3219.  
  3220. David, until qc2.0 was released, I'd would have said TC with no reserva-
  3221. tions.  But, with the enhancements to QC in 2.0, I think it may be a toss-
  3222. up.  See 2 other items ... 1) Joe Vincent's comments to me on QC in the
  3223. last several days ... 2) Review and comparisions in the recent Dr. Dobbs
  3224. issue.  I prefer TC because it supports all memory models, even the
  3225. "tiny" model and seems a little easier to use;  it also competes
  3226. with the full MSC 5.x compilers on its own turf.
  3227.  
  3228. Since this conference recently opened, you might want to review the
  3229. whole thread set for other comments and exchanges on this topic.  We've
  3230. had more than a few exchanges on this lately.
  3231.  
  3232. On Pascal vs Basic vs C ... Some implementations of Pascal, Turbo Pascal
  3233. 5.0 particularly, have the same inherent support for arcane constructs
  3234. such as bit-manipulation, pointer manipulation, etc.., as C;  Basic, how-
  3235. ever, typically does not support these constructs.
  3236.  
  3237. On which is more powerful, QC or TC ... seems to me that TC has a richer
  3238. more varied set of graphics functions in its library than does QC.
  3239.  
  3240. On  which is more powerful, C, Pascal, or Basic ... Most micro based
  3241. implementations of C and Pascal seem to be equivalent in power;  Basic
  3242. is not in the same class.  There are some things can be coded and tested
  3243. more quickly with Basic than the other 2, but performance is scarcely
  3244. optimal.  String manipulation functions and constructs are a little more
  3245. clear in Basic and in Turbo Pascal than in C, but C supports just about
  3246. everything you'll find in Turbo Pascal and Basic.
  3247.  
  3248. Grant
  3249. ---------------
  3250. ** Current thread: QC OR TC
  3251.  
  3252. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24KM1189 Date: 04/16/89
  3253. From: DAVID KRILL                                           Time: 06:19 pm
  3254.   To: GRANT ELLSWORTH (Rcvd)                                (Read 147 times)
  3255. Subj: R: QC OR TC
  3256.  
  3257. Thank you for pointing out the advantages of TC over QC.  I'll read past
  3258. messages as you've suggested.  Thanks!
  3259. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3260.  
  3261. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24MS0519 Date: 04/18/89
  3262. From: GLYN EDWARDS                                          Time: 11:08 pm
  3263.   To: ALL                                                   (Read 139 times)
  3264. Subj: VARIOUS C'S
  3265.  
  3266. What is ANSI C and how close (or not) are Turbo C and Microsoft C to it?
  3267. ---------------
  3268.  
  3269. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24NK0022 Date: 04/19/89
  3270. From: STEVEN SCHULZ                                         Time: 04:00 pm
  3271.   To: TOM FELLER (Rcvd)                                     (Read 146 times)
  3272. Subj: SETMEM FUNCTION
  3273.  
  3274.  
  3275. I was wondering if the setmem function you referred to in your recent
  3276. message was a function available in MSC 5.1?  I don't see it listed in
  3277. the library reference.
  3278. ---------------
  3279.  
  3280. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24QK2904 Date: 04/21/89
  3281. From: MICHAEL MCCLUNE                                       Time: 04:48 pm
  3282.   To: TOM FELLER (Rcvd)                                     (Read 147 times)
  3283. Subj: ESI STUFF
  3284.  
  3285. Tom I had a chance and called ESI about my problem with their
  3286. software and found out that with the menu system, when using
  3287. titles, instead of using NULL for no title using """" for no
  3288. title in the large memory model solved the problem.
  3289. Mike
  3290. ---------------
  3291.  
  3292. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24RF2825 Date: 04/22/89
  3293. From: MIKE CODY                                             Time: 11:47 am
  3294.   To: ALL                                                   (Read 154 times)
  3295. Subj: TSR'S....
  3296.  
  3297. This is a minor request for some help....I have been working in C now for
  3298. a few months, and I would like to write a TSR. Now I have not ever seen
  3299. exacltly how this is done. I am working in Quick C 2.0 and am attempting
  3300. to write a prg that will dothe following...
  3301.  
  3302. TSR to hotkey, freeze the screen, cut a section off of it, store to an
  3303. arrary, then allow me to paste it later just as though I inputed it with
  3304. key board.
  3305.  
  3306. The reason, I would like to be listing a file list on a bbs, see a file I
  3307. want, hotkey, cut the file name to the arrray, then when I go to d/l
  3308. prompt, hit up-arrow key an put in name of top file on the stack, and be
  3309. able to keep hitting up arrow key to load the file names until arrary is
  3310. empty. I have code done to do all except to TSR,Freeze Screen, and cut the
  3311. name off of it, meaning the easy stuff is done, but I have no idea how to
  3312. cut stuff off of the screen or to TSR an array. Any example of some source
  3313. code for this would be highly appreicated.....
  3314.  
  3315. Mike Cody
  3316. ---------------
  3317. Following thread
  3318.  
  3319. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24TC1328 Date: 04/24/89
  3320. From: NED REITER                                            Time: 08:22 am
  3321.   To: MIKE CODY (Rcvd)                                      (Read 151 times)
  3322. Subj: R: TSR'S....
  3323.  
  3324. Mike, see the files TESS-C.ZIP and TESS-DOC.ZIP I have uploaded to the
  3325. Mahoney collection.  These are tools for writing TSRs in C.  They are
  3326. from Compuserve and are a product of the TeSseRact project.  The
  3327. doc file describes the requirements for registering the programs and
  3328. any programs you develop using the tools.  There may be a more recent
  3329. version on CIS now.  I can check if you would like.
  3330. Have fun,
  3331. -- Ned --
  3332. ---------------
  3333. ** Current thread: TSR'S....
  3334.  
  3335. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24TH0784 Date: 04/24/89
  3336. From: MIKE CODY                                             Time: 01:13 pm
  3337.   To: NED REITER (Rcvd)                                     (Read 149 times)
  3338. Subj: R: TSR'S....
  3339.  
  3340. Thanx, I just d/l them....and will let you know.....
  3341.  
  3342. Mike Cody
  3343. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3344.  
  3345. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24SP3174 Date: 04/23/89
  3346. From: MARK DALLNER                                          Time: 08:52 pm
  3347.   To: ALL                                                   (Read 142 times)
  3348. Subj: BEGINNER WITH MSC 4.0
  3349.  
  3350. Hello there! I am new to this conference and to C programming. I have had
  3351. a course in FORTRAN 77 in college. Havn't used it much though. I purchased
  3352. a used version of MSC last fall and the manuals say it is Version 4.0 is
  3353. there a way to confirm or deny this? The serial number on the disks or it
  3354. may be a product number says 048014.400 if that helps.
  3355.  
  3356. I think I have the directory sturcture set up right, but have some doubts
  3357. on that. I have followed the quick  setup for hard disk in the manual. The
  3358. question I have is what I should do with three disks it doesn't mention.
  3359. Medium/compact model, large model libraries and the startup source code
  3360. disk. Will that come later in the manuals?
  3361.  
  3362. That sould do it for now in the questions deparment.
  3363.  
  3364. Mark
  3365. ---------------
  3366. Following thread
  3367.  
  3368. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24TL3580 Date: 04/24/89
  3369. From: GRANT ELLSWORTH (Leader)                              Time: 05:59 pm
  3370.   To: MARK DALLNER (Rcvd)                                   (Read 144 times)
  3371. Subj: R: BEGINNER WITH MSC 4.0
  3372.  
  3373. Mark, As I recollect, the MSC 4.0 large and huge model includes stuff
  3374. goes in their own sub-directories ... Doc should say that.  But the
  3375. Large and Huge LIBs just go in your Lib subdirectory.  However, since
  3376. MSC 4.0 is SO out of date, you might want to contact Microsoft about
  3377. getting an upgrade to 5.0 or 5.1 at a reduced price --- if the transfer
  3378. of MSC4.0 ownership was allowed under the License agreement.  grant
  3379. ---------------
  3380. ** Current thread: BEGINNER WITH MSC 4.0
  3381.  
  3382. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24TN3486 Date: 04/24/89
  3383. From: MARK DALLNER                                          Time: 07:58 pm
  3384.   To: GRANT ELLSWORTH (Rcvd)                                (Read 147 times)
  3385. Subj: R: BEGINNER WITH MSC 4.0
  3386.  
  3387. Thanks for the input. I will try to call MicroSoft and see if they will do
  3388. a cheap upgrade for me. The software came form SpaceSaver Software moving
  3389. sale last Fall. So I can get a hold of one of those guys to do the
  3390. transfer if it is required. I sure hope the upgrade is not to outrageous
  3391. in price.
  3392.  
  3393. Mark
  3394. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3395.  
  3396. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UD2003 Date: 04/25/89
  3397. From: MARK GINSBERG                                         Time: 09:33 am
  3398.   To: ALL                                                   (Read 150 times)
  3399. Subj: EDIT/COMPILE ENVIRONMENT
  3400.  
  3401.    I hate to touch off this debate, but I need information.  I am about to
  3402. start a large programming project in C.  I would like to know about the
  3403. strengths and weaknesses of various edit/compile environments available.
  3404.    I am not wild about the Borland or Microsoft environments as they do
  3405. not help with source formatting or have multiple windows to check on
  3406. identifier declarations.
  3407.    Of the demo's I've seen, BRIEF strikes me as pretty amazing...  Has
  3408. anyone out there made direct comparisons between BRIEF and PI or Epsilon?
  3409. There are also supposed to be some hypertext based environments available.
  3410. Are any of these worth looking at?
  3411. Has anyone tried Multi-Edit?
  3412. ---------------
  3413. Following thread
  3414.  
  3415. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UQ2400 Date: 04/25/89
  3416. From: GRANT ELLSWORTH (Leader)                              Time: 09:40 pm
  3417.   To: MARK GINSBERG (Rcvd)                                  (Read 146 times)
  3418. Subj: R: EDIT/COMPILE ENVIRONMENT
  3419.  
  3420. I saw some kind of review of programmer's editors in DDJ or CL since
  3421. Jan. 89.  I can't remember which issue.  But the review covered many of
  3422. the editors you cited ... and a few more --- e.g. Norton Editor, and
  3423. VEdit.  Brief got some high marks.  See if you can find the issue with
  3424. the reviews.  If I find mine, I'll come back with a clarification and
  3425. specifics.  Grant
  3426. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3427.  
  3428. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UL2225 Date: 04/25/89
  3429. From: MARK DALLNER                                          Time: 05:37 pm
  3430.   To: GRANT ELLSWORTH (Rcvd)                                (Read 145 times)
  3431. Subj: MSC 5/5.1
  3432.  
  3433. Grant,
  3434. What were the changes made to these versions  of MSC from 4.0? I called MS
  3435. today and they said for $150 they would be GLAD to send me an update. This
  3436. is not in my budget for a while...
  3437.  
  3438. Thanks,
  3439.  
  3440. Mark
  3441. ---------------
  3442. Following thread
  3443.  
  3444. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UL3139 Date: 04/25/89
  3445. From: GRANT ELLSWORTH (Leader)                              Time: 05:52 pm
  3446.   To: MARK DALLNER (Rcvd)                                   (Read 142 times)
  3447. Subj: R: MSC 5/5.1
  3448.  
  3449. Mark, the big difference I noted was that MSC 4.0 did NOT support
  3450. interrupt declarations.  There were some other functions I had in TC 1.5
  3451. which also weren't supported, but the conversions I had to do did not
  3452. have but 1 or 2 others where I had to do some "cobbling" to compensate
  3453. for the omissions.  It was more than 18 mos ago ... and I really don't
  3454. remember all the differences.  However, maybe you can get MS to send you
  3455. an upgrade notice which will list more of the specifics.  BTW, for the
  3456. same $150 you can get TC2.0 ... and it may also cover the cost of the
  3457. Turbo Debugger ---- which embarasses codeview for ease of use.  Check out
  3458. some of the mail-order houses' prices on TC in mags like Dr. Dobbs,
  3459. Computer Language, Byte, etc..  I like  the prices I see from The
  3460. Programmer's Connection in Columbus Ohio.  -- grant
  3461. ---------------
  3462. ** Current thread: MSC 5/5.1
  3463.  
  3464. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24UM2406 Date: 04/25/89
  3465. From: MARK DALLNER                                          Time: 06:40 pm
  3466.   To: GRANT ELLSWORTH (Rcvd)                                (Read 142 times)
  3467. Subj: R: MSC 5/5.1
  3468.  
  3469. Grant,
  3470. Thanks for the input. I did have MS send me the update info. I will have
  3471. to start reading a couple of magizines on PC's now that I'm working again.
  3472. Still have to get the budget rolling like I want it to. It looks like I
  3473. can suffer a long with the version I have for the monemt. That will give
  3474. me time to check out the other C complilers and the options they offer...
  3475.  
  3476. Mark
  3477. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3478.  
  3479. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24V11638 Date: 04/26/89
  3480. From: PHIL KATZ                                             Time: 01:27 am
  3481.   To: GRANT ELLSWORTH (Rcvd)                                (Read 142 times)
  3482. Subj: HELLO, WHAT'S THIS?
  3483.  
  3484. Message CC'd to:
  3485.      GRANT ELLSWORTH
  3486.      BOB MAHONEY
  3487.      JUDY GETTS
  3488.  
  3489. Grant,
  3490.  
  3491. Geez, I think I've been working on compression stuff too long.  Long time
  3492. ago I used to spend 1/2 hour everyday in the Programming Conference.  Now
  3493. I see there are several programming conferences!  (Don't embarrass me and
  3494. say that this happened 6 months ago now :-])  And that you are leading the
  3495. 'C' conference - congratulations!
  3496.  
  3497. Now, all we need is an assembly/DOS/BIOS/blood & guts programming section
  3498. for the real programmers that write down to the bare metal, and bypass all
  3499. these wimpy integrated environments.  You know, a place were folks can
  3500. about the special mask modes of the 8250 UART.  Where folks can talk about
  3501. how to do a quicksort in less than 100 bytes.  Important things too, like
  3502. what exactly are DOS 'Ivars', and what they are used for.
  3503.  
  3504. Whaddya say Bob?
  3505.  
  3506. >Phil>
  3507. ---------------
  3508. Following thread
  3509.  
  3510. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24VE0474 Date: 04/26/89
  3511. From: GRANT ELLSWORTH (Leader)                              Time: 10:07 am
  3512.   To: PHIL KATZ (Rcvd)                                      (Read 140 times)
  3513. Subj: R: HELLO, WHAT'S THIS?
  3514.  
  3515. I think you've just come to the right place.  Just put some comments and
  3516. questions about C/ASM and bare metal programming here, and you'll smoke
  3517. the reticent and shy out of hiding!   Grant
  3518. ---------------
  3519. ** Current thread: HELLO, WHAT'S THIS?
  3520.  
  3521. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 24VM1439 Date: 04/26/89
  3522. From: JOE VINCENT                                           Time: 06:23 pm
  3523.   To: PHIL KATZ (Rcvd)                                      (Read 148 times)
  3524. Subj: R: HELLO, WHAT'S THIS?
  3525.  
  3526. Phil, I'll second your vote for a topic addressing "barefoot" programming.
  3527. Are you volunteering as topic leader?
  3528.  
  3529. Re: DOS "Ivars", I assume you're referring to Ivar Wold, former president
  3530. of the belly-up Summit Software Technology and now with Microsoft?
  3531. <rictus>
  3532.  
  3533. BTW, it goes without saying that you've been spending too much time
  3534. working on compression stuff.
  3535. ---------------
  3536. ** Current thread: HELLO, WHAT'S THIS?
  3537.  
  3538. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 251K1915 Date: 05/01/89
  3539. From: BOB MAHONEY                                           Time: 04:31 pm
  3540.   To: PHIL KATZ (Rcvd)                                      (Read 147 times)
  3541. Subj: R: HELLO, WHAT'S THIS?
  3542.  
  3543. I will be glad to add a "Down to the Metal" topic area here is someone
  3544. would like to volunteer to lead it . . .
  3545. bob
  3546. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3547.  
  3548. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 251Q0788 Date: 05/01/89
  3549. From: MARK DALLNER                                          Time: 09:13 pm
  3550.   To: GRANT ELLSWORTH (Rcvd)                                (Read 141 times)
  3551. Subj: MSC UPDATE RIPOFF
  3552.  
  3553. Grant,
  3554. I recieved the update information in the mail today for MSC 4.0->5.1.
  3555. Would you believe this has an expiration date on it of May 26? I know I
  3556. won't have the money by then. I think it is a cheap shot on MS's part to
  3557. put such a short expiration date on the upgrade. I do want to upgrade, not
  3558. just with in the next month. There is an interesting paragraph on the
  3559. conditions for a free upgrade. I wonder if Tom Feller is still out there
  3560. and would give me a receipt. Accourding to the directions, I might be able
  3561. to get a free update. It might be pushing a little...
  3562.  
  3563. Just thought I would pass that along.
  3564.  
  3565. Mark
  3566. ---------------
  3567. Following thread
  3568.  
  3569. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 251S0516 Date: 05/01/89
  3570. From: GRANT ELLSWORTH (Leader)                              Time: 11:08 pm
  3571.   To: MARK DALLNER (Rcvd)                                   (Read 141 times)
  3572. Subj: R: MSC UPDATE RIPOFF
  3573.  
  3574. Maybe you see now why I catagorically refuse to deal with Micro$oft until
  3575. it really a last resort.  Up to this point, I'll stick with Borland,
  3576. although Watcom in Ontario is becoming more attractive for my "high
  3577. priced" production compiler.   Grant
  3578. ---------------
  3579. ** Current thread: MSC UPDATE RIPOFF
  3580.  
  3581. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 252B0381 Date: 05/02/89
  3582. From: MARK DALLNER                                          Time: 07:06 am
  3583.   To: GRANT ELLSWORTH (Rcvd)                                (Read 144 times)
  3584. Subj: R: MSC UPDATE RIPOFF
  3585.  
  3586. Grant,
  3587. Is there a list somewhere of the C compliers? Or do I remember a magizine
  3588. dedicated to it? I guess I will be looking around for a  alternative.
  3589.  
  3590. Thanks,
  3591.  
  3592. Mark
  3593. ---------------
  3594. ** Current thread: MSC UPDATE RIPOFF
  3595.  
  3596. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 252F0163 Date: 05/02/89
  3597. From: GRANT ELLSWORTH (Leader)                              Time: 11:02 am
  3598.   To: MARK DALLNER (Rcvd)                                   (Read 140 times)
  3599. Subj: R: MSC UPDATE RIPOFF
  3600.  
  3601. Mark, 2 magazines come to mind:  Dr. Dobbs Journal and Computer Language.
  3602. Both have featured at least 1 review of C compilers in the last 6 months.
  3603. I also recently found an ad for and signed up with the C User's Group and
  3604. just started receiving the C Gazette --- good stuff.  Grant
  3605. ---------------
  3606. ** Current thread: MSC UPDATE RIPOFF
  3607.  
  3608. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 252M2928 Date: 05/02/89
  3609. From: JOE VINCENT                                           Time: 06:48 pm
  3610.   To: MARK DALLNER (Rcvd)                                   (Read 144 times)
  3611. Subj: R: MSC UPDATE RIPOFF
  3612.  
  3613. Mark, you might be interested in "The C Users Journal".  It's $24/year.
  3614. Contact them at 2120 W. 25th Street, Suite B, Lawrence, Kansas 66046-9972.
  3615. Subscribing makes you a member of the C Users' Group (CUG).  Call them at
  3616. (913) 841-1631 if you have questions or want to order by charge card.
  3617. ---------------
  3618. ** Current thread: MSC UPDATE RIPOFF
  3619.  
  3620. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 252P2708 Date: 05/02/89
  3621. From: MARK DALLNER                                          Time: 08:45 pm
  3622.   To: JOE VINCENT (Rcvd)                                    (Read 138 times)
  3623. Subj: R: MSC UPDATE RIPOFF
  3624.  
  3625. Thanks, Joe and Grant. I will look into both of these sugestions.
  3626.  
  3627. Mark
  3628. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3629.  
  3630. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 252H1967 Date: 05/02/89
  3631. From: CARY ANDERSON                                         Time: 01:32 pm
  3632.   To: ALL                                                   (Read 143 times)
  3633. Subj: COMPUTER SOCIETIES
  3634.  
  3635. Can anyone provide me with an address or phone number for the following
  3636. computer societies which have C SIGs?
  3637.      NY PC Users Group
  3638.      Houston Area League of PC Users
  3639.      Capital Users Group
  3640.  
  3641. Thanks.
  3642. ---------------
  3643. Following thread
  3644.  
  3645. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25311072 Date: 05/03/89
  3646. From: ERIK DUFEK                                            Time: 12:17 am
  3647.   To: CARY ANDERSON (Rcvd)                                  (Read 143 times)
  3648. Subj: R: COMPUTER SOCIETIES
  3649.  
  3650. Have you looked in the back pages of Computer Shopper?  I know that there
  3651. is a list of users groups there, but I couldn't tell you if those
  3652. particular one's have been listed in any of the latest issues.
  3653. ---------------
  3654. ** Current thread: COMPUTER SOCIETIES
  3655.  
  3656. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 253F3239 Date: 05/03/89
  3657. From: CARY ANDERSON                                         Time: 11:53 am
  3658.   To: ERIK DUFEK (Rcvd)                                     (Read 140 times)
  3659. Subj: R: COMPUTER SOCIETIES
  3660.  
  3661. Thanks.  I'll try that.  What is prompting my interest in these groups
  3662. is that they appear to have very strong C user groups.  I am involved in
  3663. organizing a local software engineering society focusing on C under
  3664. DOS, OS/2, and Unix for starters.  My desire is to get away from the low
  3665. level at which most computer societies operate ("What's the latest game"
  3666. and "How DO you put the black things into the computer slot?") and provide
  3667. local interaction and a decent software code and knowledge base for
  3668. professional software engineers and developers.  (The C Users Group still
  3669. spends time with articles on developing CPM software and deals with
  3670. non-professional/non-standard compilers, etc. so I don't find an adequate
  3671. focus there.)  So, as my time permits, I'll investigate this conference
  3672. over the next few weeks and get the local (northern Illinois) group going.
  3673. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3674.  
  3675. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25413081 Date: 05/04/89
  3676. From: DAN REYNOLDS                                          Time: 01:51 am
  3677.   To: ALL                                                   (Read 138 times)
  3678. Subj: UNIX CURSES FOR DOS
  3679.  
  3680. DCURS122.ZIP has been uploaded to the Mahoney collection.
  3681.  
  3682. dCURSES (Version 1.22) is a virtually complete implementation of the
  3683. UNIX Curses Library.  UNIX Curses is a window oriented screen management
  3684. system.  Using dCURSES an MS-DOS application delveloper can write
  3685. full screen oriented programs that will port easily to UNIX.  Likewise,
  3686. UNIX Curses based programs can be easily ported to MS-DOS with dCURSES.
  3687. The package contains large model object libraries for both MSC 5.1 and
  3688. Turbo C 2.0, an extensive user manual, source to a few tutorial type
  3689. programs, TERMINFO terminal definitions for all of the standard PC
  3690. video adapters, and TIC.EXE the TERMINFO compiler.  The product is
  3691. being offered as SHAREWARE with both object as well as source licenses
  3692. available.  Version 1.22 fixes several minor bugs in version 1.2.
  3693. For more information send E-MAIL to Dan Reynolds on PC-EXEC.
  3694. ---------------
  3695.  
  3696. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 254D3092 Date: 05/04/89
  3697. From: TOM PETERS                                            Time: 09:51 am
  3698.   To: ALL                                                   (Read 144 times)
  3699. Subj: C & ASM
  3700.  
  3701. I seem to have more trouble linking C to Assembly language than anybody
  3702. else I know. I'm using MASM 5 and Quick C.
  3703.  
  3704. #include <stdio.h>              /* Standard i/o. <> mean do not search
  3705. default
  3706. directory. "stdio" would search default. */
  3707. #include <dos.h>
  3708. /* Easy C definitions */
  3709. /* Use DNA Network Functions to get information and save it in the
  3710.    environment. All functions invoked via INT 2Fh.
  3711.    */
  3712.  
  3713.    extern pascal NETASM(char* ptr1);
  3714.  
  3715. main()
  3716. {        /* Start of code for main() */
  3717.  
  3718. int        i=0;
  3719. char            msgbuf[81];
  3720. char*           msgptr;
  3721. i=NETASM(msgbuf);
  3722. printf("\nMsgBuf is %s \nand Status returned was %d.",msgbuf,i);
  3723.  
  3724. return(0);
  3725.  
  3726.  
  3727. Net asm looks like this:
  3728.  
  3729. PAGE    ,132
  3730. NAME    netasm
  3731. TITLE NETASM- Assembly language routines for NETENV
  3732. DOSSEG
  3733. .MODEL    medium
  3734. ;
  3735. ===========================================================================
  3736. =
  3737. .CODE
  3738. netasm    proc    far
  3739.     push    bp
  3740.     mov    bp,sp
  3741.     push    si
  3742.     push    di
  3743.     push    ss
  3744.     push    ds
  3745.     mov    ah,5ah
  3746.     mov    bp,54h
  3747.     int    2fh
  3748.     jnc    ok
  3749. ; network not available or something went wrong.
  3750.     mov    byte ptr [bp+4],0
  3751.     mov    ax,-1
  3752.     jmp    finish
  3753. ok:    mov    di,[bp+4]
  3754.     mov    es,[bp+6]
  3755.     add    si,38h
  3756.     mov    cx,8h
  3757. rep    movsb        ; move last 8 char of message into local buffer
  3758.     mov    byte ptr es:[di],0    ; null-terminate, C style.
  3759.     mov    ax,0
  3760. finish:    pop    ds
  3761.     pop    ss
  3762.     pop    di
  3763.     pop    si
  3764.     pop    bp
  3765.     retf
  3766. netasm    endp
  3767.     END
  3768.  
  3769. The linker never finds the assembly language subroutine. The PASCAL
  3770. keyword in the external statement when the linker complained that it
  3771. couldn't find "_NETASM"
  3772.  
  3773. Now the linker complains Error L2029, unresolved external NETASM.
  3774. ---------------
  3775. Following thread
  3776.  
  3777. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 254R1465 Date: 05/04/89
  3778. From: GLEN THOMPSON                                         Time: 10:24 pm
  3779.   To: TOM PETERS (Rcvd)                                     (Read 143 times)
  3780. Subj: R: C & ASM
  3781.  
  3782. Tom,
  3783.  
  3784. I'm not real good at this but the items to check are case sensitivity in
  3785. the MASM step.  Either use the same case everywhere or tell it not to
  3786. care.  Not having used MASM 5, does the .model directive generate a PUBLIC
  3787. statement - otherwise netasm might not be made public.
  3788.  
  3789. glen
  3790. ---------------
  3791. ** Current thread: C & ASM
  3792.  
  3793. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 255Q1359 Date: 05/05/89
  3794. From: GRANT ELLSWORTH (Leader)                              Time: 09:22 pm
  3795.   To: TOM PETERS (Rcvd)                                     (Read 141 times)
  3796. Subj: R: C & ASM
  3797.  
  3798. Tom, your routine name needs to have one or 2 underscores before it --
  3799. check your MSC manuals for the details.  In TC, I have to precede the name
  3800. with 1 underscore ... e.g.
  3801.  
  3802.   In C ...  myreturn = myasm(parms);
  3803.  
  3804.   In ASM .  _myasm  proc ...
  3805.  
  3806. THe linker, as Glen noted, is case sensitive.  This can be enabled and
  3807. disabled by parameters.  Also, you may need a "public" or an "extrn"
  3808. declaration for your entry point in the ASM program.  It's been a few
  3809. months since I had to do this, so I may not be accurate.  Your MSC manuals
  3810. should have the details and examples.  I'll double check my TC stuff and
  3811. see if I have anything to add.  Grant
  3812. ---------------
  3813. ** Current thread: C & ASM
  3814.  
  3815. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AJ2955 Date: 05/06/89
  3816. From: TOM PETERS                                            Time: 03:49 pm
  3817.   To: GRANT ELLSWORTH (Rcvd)                                (Read 138 times)
  3818. Subj: R: C & ASM
  3819.  
  3820. Will try case sensitivity and underscores. MY understanding was that
  3821. decalring the asm routine with the PASCAL keyword made it not require the
  3822. underscore in the name.
  3823. ---------------
  3824. ** Current thread: C & ASM
  3825.  
  3826. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AQ2360 Date: 05/06/89
  3827. From: GRANT ELLSWORTH (Leader)                              Time: 09:39 pm
  3828.   To: TOM PETERS (Rcvd)                                     (Read 132 times)
  3829. Subj: R: C & ASM
  3830.  
  3831. Tom, I don't remember ever reading anything which indicated that we could
  3832. depend on the assembler --- anybody's --- to generate the underscores.
  3833. ANd the only thing the compiler uses the PASCAL declarative for is to
  3834. control how it generates the arguments for the function calls ... and
  3835. which routine (caller or callee) will be responsible for flushing the
  3836. stack at return to caller.  Grant
  3837. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  3838.  
  3839. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 254D3190 Date: 05/04/89
  3840. From: TOM PETERS                                            Time: 09:53 am
  3841.   To: ALL                                                   (Read 141 times)
  3842. Subj: ASM & ENV VARIABLES
  3843.  
  3844. Is there any easy way to modify the environment from an assembly language
  3845. routine? Something akin to putenv()? I need to leave an env variable set
  3846. on exit.
  3847. ---------------
  3848. Following thread
  3849.  
  3850. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DG1710 Date: 05/09/89
  3851. From: STEVEN KEY                                            Time: 12:28 pm
  3852.   To: TOM PETERS (Rcvd)                                     (Read 134 times)
  3853. Subj: R: ASM & ENV VARIABLES
  3854.  
  3855. Tom,
  3856.  
  3857. Check Mahoney collection for a file called, if I remember, ANSWER203.
  3858. This is utility written to allow batch files to put stuff in the
  3859. environment, but any program should be able to do it.  There is asm code.
  3860. Note that this program gets the environment area for the parent program -
  3861. should be commmand.com for a batch file or .com file.
  3862.  
  3863. Steven
  3864. ---------------
  3865. ** Current thread: ASM & ENV VARIABLES
  3866.  
  3867. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DG2112 Date: 05/09/89
  3868. From: STEVEN KEY                                            Time: 12:35 pm
  3869.   To: STEVEN KEY (Rcvd)                                     (Read 131 times)
  3870. Subj: R: ASM & ENV VARIABLES
  3871.  
  3872. Steve,
  3873.  
  3874. That filename has at least one too many characters !
  3875.  
  3876. Steven
  3877. ---------------
  3878. ** Current thread: ASM & ENV VARIABLES
  3879.  
  3880. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DH0719 Date: 05/09/89
  3881. From: TOM PETERS                                            Time: 01:11 pm
  3882.   To: STEVEN KEY (Rcvd)                                     (Read 133 times)
  3883. Subj: R: ASM & ENV VARIABLES
  3884.  
  3885. it's worth a try. Thanks, will check into ANSWER203
  3886. ---------------
  3887. ** Current thread: ASM & ENV VARIABLES
  3888.  
  3889. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25K10631 Date: 05/16/89
  3890. From: ERIC JABLOW                                           Time: 12:10 am
  3891.   To: TOM PETERS (Rcvd)                                     (Read 139 times)
  3892. Subj: R: ASM & ENV VARIABLES
  3893.  
  3894. I read in a recent magazine (I forget which) that the hardest part of
  3895. handling the environments is finding them.  It is highly nontrivial to
  3896. find the particular environment you wish to find in the most general
  3897. situation of having many spawned processes and TSRs cluttering up the
  3898. memory.  I don't know what your particular situation is, but I hope it's
  3899. just a child process trying to change its parent's environment, and not a
  3900. more general ecology.
  3901.  
  3902. SET ALASKA=OILSPILL
  3903.  
  3904. Eric
  3905. ---------------
  3906. ** Current thread: ASM & ENV VARIABLES
  3907.  
  3908. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25NI1028 Date: 05/19/89
  3909. From: TOM PETERS                                            Time: 02:17 pm
  3910.   To: ERIC JABLOW (Rcvd)                                    (Read 142 times)
  3911. Subj: R: ASM & ENV VARIABLES
  3912.  
  3913. No, unfortunately, I need to polute the whole ecology. I need,
  3914. effectively, to perform the equiv of SET NAME=username where username can
  3915. only be known by setting AH to 5Ah and invoking interrupt 2Fh. Need to
  3916. write the program so it can be executed in a batch file. Actually, I have
  3917. written in, and it even works. I stole a buncha code from Arny Krueger and
  3918. wrote the whole shebang in ASM. I even got him to upload more recent
  3919. version of SETNOW so I could get the right code. Arny's a prince.
  3920. ---------------
  3921. ** Current thread: ASM & ENV VARIABLES
  3922.  
  3923. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25PS3171 Date: 05/20/89
  3924. From: ERIC JABLOW                                           Time: 11:52 pm
  3925.   To: TOM PETERS (Rcvd)                                     (Read 137 times)
  3926. Subj: R: ASM & ENV VARIABLES
  3927.  
  3928. I suggest that y[Aou look at Computer Language Magazine, Apr. '89,
  3929. Reading and Writing the DOS Environment, by Jon-K Adams, pp. 45ff.
  3930. It describes the difficulties in accessing the Environment, depending on
  3931. your DOS version, and on whether a secondary copy of COMMAND.COM is
  3932. extant.  Also, I would download from here the file TPENV.ZIP, written by
  3933. Kim Kokonnen.
  3934.  
  3935. Good Luck,
  3936. Eric
  3937. ---------------
  3938. ** Current thread: ASM & ENV VARIABLES
  3939.  
  3940. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25QC3236 Date: 05/21/89
  3941. From: GRANT ELLSWORTH (Leader)                              Time: 08:53 am
  3942.   To: ERIC JABLOW (Rcvd)                                    (Read 135 times)
  3943. Subj: R: ASM & ENV VARIABLES
  3944.  
  3945. Eric, do you know how any of the Networking s/w alters the environment
  3946. arrangements such that the standard methods of setting environment vars
  3947. from ASM or C won't work according to DOS rules.  I have a program which
  3948. sets environment vars correctly under DOS, but really pollutes the world
  3949. when I try to run it under a network (Novelle, in particular).  Have you
  3950. seen any docs, articles, etc., on this subject?    Grant
  3951. ---------------
  3952. ** Current thread: ASM & ENV VARIABLES
  3953.  
  3954. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25R13175 Date: 05/22/89
  3955. From: ERIC JABLOW                                           Time: 12:52 am
  3956.   To: GRANT ELLSWORTH (Rcvd)                                (Read 135 times)
  3957. Subj: R: ASM & ENV VARIABLES
  3958.  
  3959. No.  I don't know anything about how DOS works under networks.
  3960. It seems throughly disgusting to me for DOS to work differently under a
  3961. network than on a standalone.  The article I've seen most recently is in
  3962. the April Computer Language magazine, and it discusses the problems in
  3963. setting environment variables in various versions of DOS and if a
  3964. secondary COMMAND.COM is in existence.  Perhaps if you were to look at the
  3965. latest interrupt collection (INTER189.ZIP) you might find out about how
  3966. Novell network software interrupts interact with DOS interrupts.  But the
  3967. DDOS environment system is a total screwup.  Look at TPENV.ZIP too.
  3968. I wonder how environments work with the alternate command.com systems such
  3969. as 4DOS, MKS Toolkit, etc.?
  3970. ---------------
  3971. ** Current thread: ASM & ENV VARIABLES
  3972.  
  3973. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25RF2793 Date: 05/22/89
  3974. From: GRANT ELLSWORTH (Leader)                              Time: 11:46 am
  3975.   To: ERIC JABLOW (Rcvd)                                    (Read 135 times)
  3976. Subj: R: ASM & ENV VARIABLES
  3977.  
  3978. Eric, thanks for the tips!  Grant
  3979. ---------------
  3980. ** Current thread: ASM & ENV VARIABLES
  3981.  
  3982. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SB3003 Date: 05/23/89
  3983. From: STEVEN KEY                                            Time: 07:50 am
  3984.   To: GRANT ELLSWORTH (Rcvd)                                (Read 137 times)
  3985. Subj: R: ASM & ENV VARIABLES
  3986.  
  3987. Grant,
  3988.  
  3989. I was using a program  the Mahoney collection called ANSWER which worked
  3990. fine under DOS, and didn't work at all under Netware.  ANSWER gives a
  3991. prompt on the screen and then sets an environment variable called (what
  3992. else?) ANSWER to the keyboard input.  Great for batch files.
  3993.  
  3994. Fortunately, the ASM source code was included.  There was a bug in the
  3995. code where it was looking for a segment address.  It was getting it from
  3996. the wrong place, but it was a wrong place that happened to work under DOS
  3997. but not after the Netware TSR's ran.  I uploaded the fix as ANSWR203.
  3998.  
  3999. Perhaps this bug has spread itself around the ENV world and you are having
  4000. the same problem.
  4001.  
  4002. Steven
  4003. ---------------
  4004. ** Current thread: ASM & ENV VARIABLES
  4005.  
  4006. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SF3085 Date: 05/23/89
  4007. From: GRANT ELLSWORTH (Leader)                              Time: 11:51 am
  4008.   To: STEVEN KEY (Rcvd)                                     (Read 134 times)
  4009. Subj: R: ASM & ENV VARIABLES
  4010.  
  4011. Steven, please clarify ... did your repair enable ANSWER to work after
  4012. netware drivers were loaded, and THEN after network was active (i.e. you
  4013. were logged onto the network at your work-station)?  Thx, Grant
  4014. ---------------
  4015. ** Current thread: ASM & ENV VARIABLES
  4016.  
  4017. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SL1150 Date: 05/23/89
  4018. From: TOM PETERS                                            Time: 05:19 pm
  4019.   To: ERIC JABLOW (Rcvd)                                    (Read 133 times)
  4020. Subj: R: ASM & ENV VARIABLES
  4021.  
  4022. Me and Arny Krueger got it nailed down, and though we haven't tested it
  4023. under DOS 4, it should work on anything from 2.11 on up. Thanks for your
  4024. comments, though, I think I will look and TPENV.
  4025. ---------------
  4026. ** Current thread: ASM & ENV VARIABLES
  4027.  
  4028. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25TB2681 Date: 05/24/89
  4029. From: STEVEN KEY                                            Time: 07:44 am
  4030.   To: GRANT ELLSWORTH (Rcvd)                                (Read 135 times)
  4031. Subj: R: ASM & ENV VARIABLES
  4032.  
  4033. Grant,
  4034.  
  4035. Yes, ANSWR203 works very nicely on workstations running Netware.  i use it
  4036. very heavily in my menu system running on the network.
  4037.  
  4038. Steven
  4039. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4040.  
  4041. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AG3139 Date: 05/06/89
  4042. From: GRANT ELLSWORTH (Leader)                              Time: 12:52 pm
  4043.   To: ALL                                                   (Read 148 times)
  4044. Subj: CASE AND C/ASM
  4045.  
  4046. Message CC'd to:
  4047.      ALL
  4048.      RICK VANHORN
  4049.  
  4050. An interesting subject come up in one of the other conferences which I
  4051. thought might be expanded upon here ...  Subject is CASE --- Computer
  4052. Assisted Software Engineering ...
  4053.  
  4054. Does anybody out there have any experience with or knowledge of CASE tools
  4055. being used with C or C+ASM based applications?  If so, let's have some
  4056. comments ... Does this stuff really work?  Does it really save time?
  4057. Can it really be used in C/C+Asm applications?
  4058.  
  4059. Grant
  4060. ---------------
  4061. Following thread
  4062.  
  4063. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AP2275 Date: 05/06/89
  4064. From: RICK VANHORN                                          Time: 08:37 pm
  4065.   To: GRANT ELLSWORTH (Rcvd)                                (Read 144 times)
  4066. Subj: R: CASE AND C/ASM
  4067.  
  4068. Grant,
  4069.   I may be going out on a limb, here, but if CASE is where you call
  4070. ready-made routines, its much like using a library.  Some of the things
  4071. I've written set up low-level routines to determine monitor, equipment,
  4072. etc., and build up from there.  If I'm understanding CASE correctly, then,
  4073. yes, they really DO help.  A programmer can concentrate on the main flow
  4074. of the program and use the ready-made routines to take care of the more
  4075. mundane.  The time spent working on learning the routines are well worth
  4076. it, if they're fairly bug-free.
  4077.   BUT, if CASE is where you write a "program" in the environment of the
  4078. CASE editor and it generates the code for you, you frequently end up with
  4079. programs that are usually twice as large as they need to be and
  4080. considerably slower.  Again, it all depends on who wrote it and the
  4081. modularity/compactness of it.  Witness an RBase compiled program... it's
  4082. very large and usually quite slow.
  4083.   It's been quite a while since I used anything that generated code for
  4084. me.  I wasn't real impressed at the time, but I DO know from my readings
  4085. that there are some very excellent CASE-ware programs coming down the
  4086. line.  Again, learning-curve is usually quite long and program size is
  4087. usually larger than if you wrote it from the ground up.  BUT, the learning
  4088. curve is probably shorter than working with CodeView or Debug to
  4089. understand a particular DOS interrupt so that you know what to do with it.
  4090. The larger code size may, at times, justify the quicker programming time.
  4091. I see it as any tool that can help is worth it, up to a point.
  4092. --Rick
  4093. PS: in my private message to you, I confused C.A.S.E. with the case
  4094. management of patients.
  4095. ---------------
  4096. ** Current thread: CASE AND C/ASM
  4097.  
  4098. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AQ2803 Date: 05/06/89
  4099. From: GRANT ELLSWORTH (Leader)                              Time: 09:46 pm
  4100.   To: RICK VANHORN (Rcvd)                                   (Read 145 times)
  4101. Subj: R: CASE AND C/ASM
  4102.  
  4103. Thanks for your comments on utility of CASE (C.A.S.E.) tools as you've
  4104. seen them.  My understanding of CASE is where the analyst somehow (with
  4105. smoke and mirrors) specifies the application's requirements in a very
  4106. formal way , pays heed to the enterprise's subject data bases, etc., and
  4107. pushes a "MAKE IT" button === PRESTO/CHANGO/HocusPocus there's an opera-
  4108. tional application on-line and ready to use.  Grant
  4109.  
  4110. Anybody else with specific experience in CASE, particularly where C and/or
  4111. ASM code was involved?
  4112. ---------------
  4113. ** Current thread: CASE AND C/ASM
  4114.  
  4115. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AR0275 Date: 05/06/89
  4116. From: RICK VANHORN                                          Time: 10:04 pm
  4117.   To: GRANT ELLSWORTH (Rcvd)                                (Read 143 times)
  4118. Subj: R: CASE AND C/ASM
  4119.  
  4120. Grant,
  4121.   Okay, I'm with you now on what a CASE program is.  Dan Bricklin has one
  4122. out called Demo Maker (or some such) where you paint the screens, etc. and
  4123. it writes out code to disk to have a ready-to-go demo.  It is supposed to
  4124. be EXCELLENT.  With all CASE programs, in theory, a non-programmer can
  4125. create an honest-to-god program.  Early ones didn't use smart compilation,
  4126. i.e., the entire runtime library was dropped in, even though several
  4127. functions are never called.  They sneakily teach non-programmers how to
  4128. program without them ever realizing it.  Mostly, they are like a higher
  4129. level language even one step higher, usually with a lot of utilities to
  4130. make the creation of the program easier.  Some write out code which then
  4131. needs compiled.  All that I have ever seen are limited in their approach;
  4132. they only do what is defined in their routines.  If there is no function
  4133. to clear a window on the screen, then it doesn't exist and can't be used.
  4134. They ARE good for quick program generation, but I don't think that any
  4135. serious programmer will use one for anything other than minimal programs.
  4136. --Rick
  4137. ---------------
  4138. ** Current thread: CASE AND C/ASM
  4139.  
  4140. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25AR1111 Date: 05/06/89
  4141. From: MICHAEL MCCLUNE                                       Time: 10:18 pm
  4142.   To: GRANT ELLSWORTH (Rcvd)                                (Read 140 times)
  4143. Subj: R: CASE AND C/ASM
  4144.  
  4145. Grant
  4146. After reading the reply to you I remember a freind showing me
  4147. a CASE program. He told me it was used to design screen layouts
  4148. to show clients how his program would look and feel before he spent
  4149. hours writing code. A real time saver. If there was something the
  4150. client didn't like the layout was easily changed. Off hand I can't
  4151. think of the name of the software. If your interested I can
  4152. ask for you.
  4153. Mike
  4154. ---------------
  4155. ** Current thread: CASE AND C/ASM
  4156.  
  4157. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25BG1197 Date: 05/07/89
  4158. From: GRANT ELLSWORTH (Leader)                              Time: 12:19 pm
  4159.   To: RICK VANHORN (Rcvd)                                   (Read 140 times)
  4160. Subj: R: CASE AND C/ASM
  4161.  
  4162. Have you seen any such tools specifically intended for use with C, Pascal,
  4163. or Asm (micro or other) programs/applications/systems?  I have read of
  4164. such for use with Cobol and database languages only.  Grant
  4165. ---------------
  4166. ** Current thread: CASE AND C/ASM
  4167.  
  4168. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25BG1274 Date: 05/07/89
  4169. From: GRANT ELLSWORTH (Leader)                              Time: 12:21 pm
  4170.   To: MICHAEL MCCLUNE (Rcvd)                                (Read 139 times)
  4171. Subj: R: CASE AND C/ASM
  4172.  
  4173. Mike, do it.  Having name of product, vendor, etc., might be of interest
  4174. to many in this forum as well as the other forums.   Grant
  4175. ---------------
  4176. ** Current thread: CASE AND C/ASM
  4177.  
  4178. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25BH1919 Date: 05/07/89
  4179. From: RICK VANHORN                                          Time: 01:31 pm
  4180.   To: GRANT ELLSWORTH (Rcvd)                                (Read 142 times)
  4181. Subj: R: CASE AND C/ASM
  4182.  
  4183. Grant,
  4184.   I'll have to look in my back issues of PC Tech.  I seem to remember an
  4185. article about fourth-generation things coming down the line.  Did you know
  4186. that PC Tech is going to be discontinued by Ziff-Davis?
  4187. --Rick
  4188. ---------------
  4189. ** Current thread: CASE AND C/ASM
  4190.  
  4191. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25CP0813 Date: 05/08/89
  4192. From: GRANT ELLSWORTH (Leader)                              Time: 08:13 pm
  4193.   To: RICK VANHORN (Rcvd)                                   (Read 140 times)
  4194. Subj: R: CASE AND C/ASM
  4195.  
  4196. >discontinuation of PCTJ by Ziff-Davis
  4197.  
  4198. Yes, I got notice of it in the mail.  I've been a long-time subscriber to
  4199. PCTJ and have really like it much.  I am VERY disappointed.  But this is
  4200. not the 1st Ziff-Davis pub I've subscribed to which Ziff-Davis has so
  4201. unceremoniously and suddenly retired.   The publishing business runs on a
  4202. real tight nut.... and Z-D's is one of the tightest.  Must be that PCTJ
  4203. couldn't keep the circulation base to cover the costs to produce and sell
  4204. against the other ZD pubs.  But, I am really growling over this one.  I'm
  4205. wondering what will be the next ZD pub I like to byte the dust.  Grant
  4206. ---------------
  4207. ** Current thread: CASE AND C/ASM
  4208.  
  4209. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DD1407 Date: 05/09/89
  4210. From: GLEN THOMPSON                                         Time: 09:23 am
  4211.   To: GRANT ELLSWORTH (Rcvd)                                (Read 140 times)
  4212. Subj: R: CASE AND C/ASM
  4213.  
  4214. Grant,
  4215.  
  4216. We've just started looking at CASE tools but for a COBOL environment.
  4217. Biggest advantage is in data definition.  Make sure all your database are
  4218. defined properly and ahead of all the rest.  The CASE packages then make
  4219. sure you have consistent usage and that there is proper correspondence
  4220. between the input screens, the data base and the output.
  4221.  
  4222. Useful for large projects and database stuff but overkill for smaller
  4223. projects.  I see no reason why it would not provide the same functions on
  4224. for other languages and systems.
  4225.  
  4226. glen
  4227. ---------------
  4228. ** Current thread: CASE AND C/ASM
  4229.  
  4230. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DR2531 Date: 05/09/89
  4231. From: GRANT ELLSWORTH (Leader)                              Time: 10:42 pm
  4232.   To: GLEN THOMPSON (Rcvd)                                  (Read 135 times)
  4233. Subj: R: CASE AND C/ASM
  4234.  
  4235. Are you using/deriving "Subject" databases from an "enterprise model"? GE
  4236. ---------------
  4237. ** Current thread: CASE AND C/ASM
  4238.  
  4239. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25EE2351 Date: 05/10/89
  4240. From: GLEN THOMPSON                                         Time: 10:39 am
  4241.   To: GRANT ELLSWORTH (Rcvd)                                (Read 136 times)
  4242. Subj: R: CASE AND C/ASM
  4243.  
  4244. Grant,
  4245.  
  4246. I'm not involved in working with the CASE tools, some others are and I'm
  4247. not sure exactly what they've got going.
  4248.  
  4249. glen
  4250. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4251.  
  4252. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25BG1301 Date: 05/07/89
  4253. From: STEVE KRAUS                                           Time: 12:21 pm
  4254.   To: ALL                                                   (Read 129 times)
  4255. Subj: DIFFERENTIAL FILE COMPARE
  4256.  
  4257. I've uploaded DIFF25.ZIP to the Mahoney area.  This is a differential
  4258. file comparator that compares two files and generates a list of the
  4259. differences.  DIFF will also generates a file with change bars.  I have
  4260. made changes to DIFF23.ZIP for more use by programmers.  The original is
  4261. from Dr Dobbs Journal Aug 87.  It was extensively modified by Peter van Es
  4262. who optimized the source.  I would like to make more changes with
  4263. respect to examining changes in program source code.  Is there another
  4264. DIFF utility in Unix or DOS that has a clear description of options?
  4265. DIFF handles large files well and only gets confused with large
  4266. numbers of changes.  Are there any other nice C comparison utilities
  4267. that anyone has heard of?
  4268. ---------------
  4269.  
  4270. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25CM1250 Date: 05/08/89
  4271. From: RICK VANHORN                                          Time: 06:20 pm
  4272.   To: ALL                                                   (Read 131 times)
  4273. Subj: CASE TOOLS
  4274.  
  4275. Message CC'd to:
  4276.      ALL
  4277.      GRANT ELLSWORTH
  4278.  
  4279. Grant/ALL,
  4280.   The PC Tech which discusses CASE tools relatively completely from a
  4281. general standpoint is the August 88 issue, Vol 6, No. 8.  The one
  4282. evaluated (Excelerator) is rather pricey ($8,400).  The general thrust of
  4283. the articles, in skimming them, is that the CASE software concentrates on
  4284. the user interface/design and basically presents the author with a kindof
  4285. outline to use for doing the actual coding.  They are resting their
  4286. strength on the concept that the software will be good if the front end is
  4287. designed first with the coding later to produce it.  It has some merit,
  4288. but I question the priciness.  Might be a good job for SHAREWARE-MAN.
  4289. Enjoy the reading.
  4290. --Rick
  4291. ---------------
  4292. Following thread
  4293.  
  4294. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25CN3094 Date: 05/08/89
  4295. From: GRANT ELLSWORTH (Leader)                              Time: 07:51 pm
  4296.   To: RICK VANHORN (Rcvd)                                   (Read 136 times)
  4297. Subj: R: CASE TOOLS
  4298.  
  4299. Rick, I think I saw the article.  I do have back issues of PCTJ and I know
  4300. I have that issue.  I'll pull it out and read the article again.  WRT to
  4301. you comment that CASE software focuses on the user interface (design of),
  4302. I don't have that understanding.  As I came to know the subject, CASE was
  4303. supposed to enable non-programer business/enterprise specialists to
  4304. totally specify the data requirements, logical relationships, enforcement
  4305. rules, and decision processing through graphical / iconic means and a very
  4306. formal structured dialog.  Those aspects of CASE which focus on design and
  4307. creation of the application's user-interface barely scratch the surface of
  4308. the intent and direction of CASE tools.  Grant
  4309. ---------------
  4310. ** Current thread: CASE TOOLS
  4311.  
  4312. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DC0509 Date: 05/09/89
  4313. From: DAVID ROSENBAUM                                       Time: 08:08 am
  4314.   To: RICK VANHORN (Rcvd)                                   (Read 136 times)
  4315. Subj: R: CASE TOOLS
  4316.  
  4317. RICK,
  4318.       I DONT KNOW WHO YOU REFER TO AS SHAREWARE-MAN,  BUI WOULD LIKE TO
  4319. HELP ACCEPT THAT CHALLENGE.   I DO A FAIR AMOUNT OF CODING FOR REAL TIME
  4320. DATA COLLECTION ON PC'S.    I HAVE SOME TOOLS THAT WOULD ALLOW US TO
  4321. DESIGN A USER INTF. (ICONS, MICE ETC) AND A DATABASE FUNCTION .  BETWEEN
  4322. THESE TOOLS AND THE COMBINED TALENTS HERE I THINK THAT WE COULD PUT
  4323. A NICE LIBRARY TOGATHER THAT WOULD ALLOW THE END USER A CASE ENVIRONMENT.
  4324. IT WOULD TAKE SOME TIME, AND WITH ANY GREAT ENDEAVOR WE MUST FACE THE
  4325. POSSIBILITY OF HAVING SOMETHING WRITTEN BY THE SOFTWARE GIANTS THAT WOULD
  4326. SUPERCEED OUR EFFORTS.  AS LONG AS WE'RE AWARE OF THIS AT THE JUMP, I
  4327. THINK THAT WE HAVE A GOOD SHOT AT PRODUCING A SHAREWARE GOODIE.   WHATCHA
  4328. THINK.
  4329.     I BOUGHT MATRIX LAYOUT AND HAVE BEEN REALLY DISSAPOINTED.  I'VE ALWAYS
  4330. BEEN A SUCKER FOR THOSE <= $200 MIRACLES.   LONG AGO I DESIGNED A COMPILER
  4331. FOR PC'S TO RUN CADO CODE.   ITS NOTHING SPECIAL, BUT I THINK IT GAVE ME
  4332. SOME INSIGHT INTO WHAT GOES INTO THAT TYPE OF EFFORT.
  4333. -DR-
  4334. ---------------
  4335. ** Current thread: CASE TOOLS
  4336.  
  4337. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DE1575 Date: 05/09/89
  4338. From: LAMONT THOMAS                                         Time: 10:26 am
  4339.   To: DAVID ROSENBAUM (Rcvd)                                (Read 134 times)
  4340. Subj: R: CASE TOOLS
  4341.  
  4342. Hello, I am new to this section and would like to add my two cent to the
  4343. current topics. I believe CASE tool will be very useful for people who
  4344. would like to program but do not wish to learn a programming language.
  4345. I have taught myself Smalltalk/v and think it would be a good language
  4346. to be used for a CASE program. Does any one else use Smalltalk/v? I am
  4347. the in the right place to be asking this question ? Oh well if not it
  4348. would not be the first time? Thanks for giving the opportunity to boast
  4349. about what I think is a great language "SMALLTALK/V".
  4350. I hope I have not strayed to far from the main topic of this thread.
  4351. ---------------
  4352. ** Current thread: CASE TOOLS
  4353.  
  4354. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DM1087 Date: 05/09/89
  4355. From: RICK VANHORN                                          Time: 06:18 pm
  4356.   To: DAVID ROSENBAUM (Rcvd)                                (Read 135 times)
  4357. Subj: R: CASE TOOLS
  4358.  
  4359. David,
  4360.   I must admit that I'm a hard-core Pascal programmer in the process of
  4361. learning C, so I'm not much help, at least from the C level.  But, from a
  4362. design level, I know from many hours of coding that the success requires
  4363. second-guessing what is intuitive to a user.  I love PKZIP, etc., but
  4364. don't feel that the DOS command line with switches is the place for users,
  4365. no matter how well explained.  Their eyes glaze over as soon as it looks
  4366. like it will take some computer knowledge to understand the use of the
  4367. program.  Part of the reason for the success of the Mac (remember how much
  4368. we all LAUGHED at it a few years ago?  I use one at work, am in love with
  4369. it, and would recommend it over IBM for general use in an office setting
  4370. because of the quick-learn time, AND, more importantly, less of my time
  4371. explaining how to format a disk, this is what you do next, etc.).
  4372.   First, one would need to define a good user interface.  NOT one you or I
  4373. like, but one that is intuitive to the user and their needs.  WINDOWS
  4374. comes close, kindof.  After setting up the user interface, basic stuff
  4375. such as windowing, etc., then one needs to create "editors", menus to make
  4376. the creation of the whole thing as "easy" as moving stuff around.  From
  4377. there, I don't see any major problem with writing a text file out to disk
  4378. which will define the necessary include files and other code.
  4379.   I really believe that, before this becomes feasible in the shareware
  4380. market, one needs to create some "hot" software using the interface/code
  4381. to show what can be done.  THEN, it needs adopted by other authors into
  4382. their work.  It IS a very massive project, one which I'm kindof tackling;
  4383. other companies have a jump and R&D that I don't, but then, I won't be
  4384. charging $8,400 up front for anything either.
  4385. More later.
  4386. --Rick
  4387. PS:  I wonder if that $8,400 comes with a 30 day satisfaction guarantee?
  4388. ---------------
  4389. ** Current thread: CASE TOOLS
  4390.  
  4391. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25DM1291 Date: 05/09/89
  4392. From: RICK VANHORN                                          Time: 06:21 pm
  4393.   To: DAVID ROSENBAUM (Rcvd)                                (Read 137 times)
  4394. Subj: R: CASE TOOLS
  4395.  
  4396. David,
  4397.   One other thought... are there any shareware authors out there who would
  4398. find this type of system beneficial, knowing that they are "stuck" with
  4399. the basic underlying routines?  If so, would it be worth a percentage,
  4400. i.e., the more copies they sold of their software, the more actual $$ seen
  4401. by the system author?  Would it be worth, say, 5% of the gross?  No one
  4402. seems to be able to answer how to charge for something like this.
  4403. --Rick
  4404. ---------------
  4405. ** Current thread: CASE TOOLS
  4406.  
  4407. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25IC1908 Date: 05/14/89
  4408. From: DAVID ROSENBAUM                                       Time: 08:31 am
  4409.   To: RICK VANHORN (Rcvd)                                   (Read 140 times)
  4410. Subj: R: CASE TOOLS
  4411.  
  4412. RICK,
  4413.      I'm pretty new to this BBS stuff as well. I agree with your thoughts
  4414. concering the user interface and the needs to include other members to
  4415. produce a significant product.    One of my basic assumptions is that we
  4416. all do something other than this project for a living  ( how would we be
  4417. able to affford the phone time ).  Given this,  to produce a product in a
  4418. timely maner we need to recruit the assistance of some other authors.
  4419. On the subject of the user interface that lib that i have for c, it's
  4420. wonderful,  it has windows, window editors, dialoge boxes, date and time
  4421. routines   and many many more.  Sounds like a commercial doesent it.
  4422. Anyway the point is that we could design a user intf based on these tools
  4423. being avail.  if you like, i could send you the demo.
  4424.      Please pardon my delay in responding,  I've been doing two large
  4425. projects ( this has only happened twice in the last year ).  What i'm
  4426. trying to say is that i could dedicate 5-10 hrs / wk to this project.
  4427. Maybe what we need to do is produce some demo user intf and database
  4428. goodies to intice other authors to pledge a certain number of hrs to this
  4429. project.
  4430.      Didn't mean to ramble on ,  if pascal is preferable to you i could
  4431. link in pascal objs to produce the exes.   whatever.
  4432.      Bye 4 now    -DR-
  4433. ---------------
  4434. ** Current thread: CASE TOOLS
  4435.  
  4436. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25IC2782 Date: 05/14/89
  4437. From: DAVID ROSENBAUM                                       Time: 08:46 am
  4438.   To: LAMONT THOMAS (Rcvd)                                  (Read 138 times)
  4439. Subj: R: CASE TOOLS
  4440.  
  4441. LAMONT,
  4442.     I've never used smalltalk, I've read lots about it and have been
  4443. inticed a few times to get a copy but sadly i've never gotten to it.
  4444. The problem that i run into is that I write mostly communications code.
  4445. So as not to loose any of that comm data the code needs to be fast and
  4446. tight.  C fits that bill.  One tends to work with the tools that they know
  4447. best. So i've continued to code in C.  Now, with all of the library s
  4448. avail for turbo and msc, I dont have to beat my head against the wall to
  4449. get my data to a Db3 file ( for example ) or to check if the user has a
  4450. mouse.  Smalltalk may provide these functions, but to build a CASE , i
  4451. think that we will need to recruit the assistance of other programmers
  4452. and to find more than a handfull of skilled Smalltalk programmers may
  4453. prove more difficult than the task itself.
  4454.     Please dont intrepret my response as downing Smalltalk.  My opinion is
  4455. that all languages are tools to get the job done.  Not only does the tool
  4456. have to fit the job, but we also need to have skilled operators for the
  4457. tools at hand.
  4458. THanks    -DR-
  4459. ---------------
  4460. ** Current thread: CASE TOOLS
  4461.  
  4462. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25J11743 Date: 05/15/89
  4463. From: LAMONT THOMAS                                         Time: 01:29 am
  4464.   To: DAVID ROSENBAUM (Rcvd)                                (Read 140 times)
  4465. Subj: R: CASE TOOLS
  4466.  
  4467. Hello David, I did not take your responds as a put down of Smalltalk.
  4468. Like many people (including myself) you use what you are familar with.
  4469. The reason I said smalltalk would be a good language to develop a CASE
  4470. product are:
  4471.     1)It already has a graphics interface and mouse support
  4472.     2)It can use tools written in other langauges (keep the good 'C' tools)
  4473.     3)It is an object oreinted language- this facilitates code reuseabilty
  4474.     4) Smalltalk/v has a prolog intepreter included this would aid in code
  4475.         generation.
  4476.  
  4477. You are  right, in that there are not enough Smalltalk programmers but
  4478. hopefully this will not always be the case. I would recommend that you
  4479. purchase Smalltalk/v, because I would like to have some one to talk to
  4480. and you can increase you understanding of what seems to be all the rage
  4481. in programming circle Objects Oreinted programming. If my understand
  4482. correctly all the Big software house are switching to the pardigm. So
  4483. catch the wave.
  4484. Thanks for giving me the opportunity to talk  Smalktlk with you.
  4485. ---------------
  4486. ** Current thread: CASE TOOLS
  4487.  
  4488. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25KQ0523 Date: 05/16/89
  4489. From: RICK VANHORN                                          Time: 09:08 pm
  4490.   To: DAVID ROSENBAUM (Rcvd)                                (Read 134 times)
  4491. Subj: R: CASE TOOLS
  4492.  
  4493. David,
  4494.   Are the libs your libs, or something downloaded/bought?  I like the idea
  4495. of multiple authors, but I'm also leery; lots of details to work out.  If
  4496. the project is successful, how is the money divided?  How do we make the
  4497. money?  Etc.  These types of things should be worked out between authors
  4498. prior to ANY collaboration so that problems/bad feelings don't crop out
  4499. after things are successful.  Other things to think about: 1) how many
  4500. authors do we allow to contribute time/energy?  2) what is a reasonable
  4501. time expectation from people?  3) how do we justify allowing someone to
  4502. work on the project (i.e., what if they write schlock code?  should they
  4503. be allowed a percentage?).
  4504.   I think that this subject would be VERY valuable to myself and others,
  4505. and will put more thought into the matter.  I think that this subject
  4506. should be moved away from the C-specific area and maybe into the larger
  4507. arena/generic area.  I'll look around for the proper message area and
  4508. leave you a note (publicly) so that anyone else who wants to may follow
  4509. this trail.
  4510.   As to looking at the libs, a demo would be fine, but I DON'T want to
  4511. look at source code at this point.  Look what happened to Phil Katz
  4512. because he looked at some of SEA Ware's source code.
  4513.   --Rick
  4514. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4515.  
  4516. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25D42604 Date: 05/09/89
  4517. From: PAT SHEA                                              Time: 04:43 am
  4518.   To: ALL                                                   (Read 132 times)
  4519. Subj: ETC . . .
  4520.  
  4521. and here's the latest yuk from Usenet. . .
  4522.  
  4523. The Ten Commandments for C Programmers
  4524.  
  4525. Henry Spencer
  4526.  
  4527. Thou shalt run \fIlint\fR frequently and study its pronouncements with
  4528. care, for verily its perception and judgement oft exceed thine.
  4529.  
  4530. Thou shalt not follow the NULL pointer, for chaos and madness await thee
  4531. at its end.
  4532.  
  4533. Thou shalt cast all function arguments to the expected type if they are
  4534. not of that type already, even when thou art convinced that this is
  4535. unnecessary, lest they take cruel vengeance upon thee when thou least
  4536. expect it.
  4537.  
  4538. If thy header files fail to declare the return types of thy library
  4539. functions, thou shalt declare them thyself with the most meticulous
  4540. care, lest grievous harm befall thy program.
  4541.  
  4542. Thou shalt check the array bounds of all strings (indeed, all arrays),
  4543. for surely where thou typest ``foo'' someone someday shall type
  4544. ``supercalifragilisticexpialidocious''.
  4545.  
  4546. If a function be advertised to return an error code in the event of
  4547. difficulties, thou shalt check for that code, yea, even though the
  4548. checks triple the size of thy code and produce aches in thy typing
  4549. fingers, for if thou thinkest ``it cannot happen to me'', the gods shall
  4550. surely punish thee for thy arrogance.
  4551.  
  4552. Thou shalt study thy libraries and strive not to re-invent them without
  4553. cause, that thy code may be short and readable and thy days pleasant and
  4554. productive.
  4555.  
  4556. Thou shalt make thy program's purpose and structure clear to thy fellow
  4557. man by using the One True Brace Style, even if thou likest it not, for
  4558. thy creativity is better used in solving problems than in creating
  4559. beautiful new impediments to understanding.
  4560.  
  4561. Thy external identifiers shall be unique in the first six characters,
  4562. though this harsh discipline be irksome and the years of its necessity
  4563. stretch before thee seemingly without end, lest thou tear thy hair out
  4564. and go mad on that fateful day when thou desirest to make thy program
  4565. run on an old system.
  4566.  
  4567. Thou shalt foreswear, renounce, and abjure the vile heresy which
  4568. claimeth that ``All the world's a VAX'', and have no commerce with the
  4569. benighted heathens who cling to this barbarous belief, that the days of
  4570. thy program may be long even though the days of thy current machine be
  4571. short.
  4572. ---------------
  4573.  
  4574. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25KR0335 Date: 05/16/89
  4575. From: RICK VANHORN                                          Time: 10:05 pm
  4576.   To: ALL                                                   (Read 148 times)
  4577. Subj: MISC/CASE
  4578.  
  4579. Message CC'd to:
  4580.      ALL
  4581.      DAVID ROSENBAUM
  4582.  
  4583. David,
  4584.   (and ALL); I'm moving the discussions about a collaborative effort to
  4585. the Programming General forum.  We'll see you there.
  4586. --Rick
  4587. ---------------
  4588. Following thread
  4589.  
  4590. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25QG3408 Date: 05/21/89
  4591. From: RICK VANHORN                                          Time: 12:56 pm
  4592.   To: ALL                                                   (Read 131 times)
  4593. Subj: MAGAZINE BACK ISSUES
  4594.  
  4595. TO ALL,
  4596.   MAKE $$$.  I am in the process of binding all of my issues of PC Tech
  4597. and PC Magazine.  I would like to have a complete library of all of the
  4598. issues and am willing to pay for back issues.  Needed are:
  4599.   PC Tech:  Vol 1, #1..6
  4600.             Vol 1, #8..12
  4601.             Vol 2, ALL
  4602.             Vol 3, #1..3
  4603.             Vol 4, #7
  4604.   PC Mag:   Vol 1, ALL
  4605.             Vol 2, ALL
  4606.             Vol 3, ALL
  4607.             Vol 4, #1 & 2
  4608.             Vol 5, #14
  4609. Please leave me a message in the private section if you are willing to
  4610. part with these back issues.  I'd like to negotiate a package deal with
  4611. you if you have more than one of these issues.  Hope to hear from you.
  4612. --Rick
  4613. ---------------
  4614. Following thread
  4615.  
  4616. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SL0755 Date: 05/23/89
  4617. From: GLEN THOMPSON                                         Time: 05:12 pm
  4618.   To: RICK VANHORN (Rcvd)                                   (Read 136 times)
  4619. Subj: R: MAGAZINE BACK ISSUES
  4620.  
  4621. Rick,
  4622.  
  4623. I have most of the PCTJ's you need, I think.  How much are you willing to
  4624. pay?  Shipping to WI will add to that of course.
  4625.  
  4626. I'm leaving for my brother's wedding so I won't be able to get back to you
  4627. for a week.  I'll confirm the exact issues then (they aren't where I am).
  4628.  
  4629. glen
  4630. ---------------
  4631. ** Current thread: MAGAZINE BACK ISSUES
  4632.  
  4633. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SL2748 Date: 05/23/89
  4634. From: RICK VANHORN                                          Time: 05:45 pm
  4635.   To: GLEN THOMPSON (Rcvd)                                  (Read 134 times)
  4636. Subj: R: MAGAZINE BACK ISSUES
  4637.  
  4638. Glen,
  4639.   What's fair?  Would you be insulted if I offered $2/ea, shipping extra
  4640. (approx. $55 plus shipping)?  $3 each?  $4 each and you pay shipping?
  4641. What will you take?  I'm VERY interested in getting them all from one
  4642. source.
  4643. --Rick
  4644. ---------------
  4645. ** Current thread: MAGAZINE BACK ISSUES
  4646.  
  4647. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A1F0428 Date: 06/01/89
  4648. From: GLEN THOMPSON                                         Time: 11:07 am
  4649.   To: RICK VANHORN (Rcvd)                                   (Read 137 times)
  4650. Subj: R: MAGAZINE BACK ISSUES
  4651.  
  4652. Rick,
  4653.  
  4654. Here's the issues I was able to locate.
  4655.    Vol 1 #1-5
  4656.    Vol 2 #8,9
  4657.    Vol 2 ALL
  4658.    Vol 3 #1-3
  4659.  
  4660. I had loaned out some of the others but I can't remember who to.  I'll
  4661. check around and see if I still can get back the others.
  4662.  
  4663. I checked in a PC Tech Journal and they were asking $7 each for back
  4664. issues.  Balancing the fact that mine are not in mint condition but that
  4665. they may become collectors items - I'm going to have to ask $6 each for
  4666. them but I'll cover the shipping.
  4667.  
  4668. Let me know if you want them and what arrangements you want to make.
  4669.  
  4670. glen
  4671. ---------------
  4672. ** Current thread: MAGAZINE BACK ISSUES
  4673.  
  4674. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BIS2135 Date: 07/14/89
  4675. From: DAVE NELSON                                           Time: 11:35 pm
  4676.   To: RICK VANHORN (Rcvd)                                   (Read 115 times)
  4677. Subj: R: MAGAZINE BACK ISSUES
  4678.  
  4679. I have the complete PC Tech journal colection from v1n1.
  4680. Make me an offer for what you're missing. Dave Nelson
  4681. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4682.  
  4683. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SA3131 Date: 05/23/89
  4684. From: TOM NOWALIS                                           Time: 06:52 am
  4685.   To: ALL                                                   (Read 138 times)
  4686. Subj: C PROGRAM
  4687.  
  4688. I am writing a program to print a string out by using a loop with a
  4689. pointer to print out one character at a time. Compiling the code with
  4690. turbo c 2.0 I get and error message on the For loop which says
  4691. non-portable pointer assignment. Also my output is garbage. Is their
  4692. anyone who has any suggestions? The following is my code:
  4693. main()
  4694. {
  4695. char strg[40],*count;
  4696. strcpy(strg, "all in a days work.");
  4697. for (count=&strg[0]; count < 40;count++)
  4698. printf(" %c\n ",*count);
  4699. }
  4700. ---------------
  4701. Following thread
  4702.  
  4703. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25SL1053 Date: 05/23/89
  4704. From: GLEN THOMPSON                                         Time: 05:17 pm
  4705.   To: TOM NOWALIS (Rcvd)                                    (Read 139 times)
  4706. Subj: R: C PROGRAM
  4707.  
  4708. Tom,
  4709.  
  4710. count is a pointer to type string and can't be compared to the number 40.
  4711. Also the address-of operand on strg[0] asks for the address of the address
  4712. of the string.  Try the following:
  4713.  
  4714.    for (count=strg;*count;count++) printf(........
  4715.  
  4716. That sets count to the address of the string, increments it by 1 in the
  4717. loop and stops when the value pointed to is 0 (the string end).
  4718.  
  4719. glen
  4720. ---------------
  4721. ** Current thread: C PROGRAM
  4722.  
  4723. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25TS2290 Date: 05/24/89
  4724. From: ERIC JABLOW                                           Time: 11:38 pm
  4725.   To: GLEN THOMPSON (Rcvd)                                  (Read 141 times)
  4726. Subj: R: C PROGRAM
  4727.  
  4728. Even better, I think, is the following code fragment:
  4729.  
  4730. char string[41];   /* string contains up to 40 char's + final \0. */
  4731. char counter;      /* counter traverses the string. */
  4732. strcpy( string, "The time has come, the carpenter said,");
  4733. counter = string;  /* Remember, string is really a `const char *' */
  4734.                    /* effectively; in assignments, it stands for  */
  4735.                    /* its own address, and is nearly a char *.    */
  4736.  
  4737. while ( *counter != '\0') printf( "%c\n", *counter++ );
  4738.  
  4739. The while loop is crucial.  Entering it, counter points to the beginning
  4740. of the string.  Then, the loop question is: Is the element that counter
  4741. points to null?  If so, the string has ended, and we can go on.
  4742. Otherwise, the printf statement is executed, and the character counter
  4743. points to is printed on a line by itself.  However, since we used
  4744. *counter++ in the invocation, the side-effect  is that counter is bumped
  4745. up to the next character in the string.  Incidentally, you could have
  4746. replaced the while condition by:  while( ! *counter), as the null
  4747. character is just zero.
  4748.  
  4749. Hope this helps the original poster.
  4750. Eric
  4751. ---------------
  4752. ** Current thread: C PROGRAM
  4753.  
  4754. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25UD1442 Date: 05/25/89
  4755. From: MARK GINSBERG                                         Time: 09:24 am
  4756.   To: ERIC JABLOW (Rcvd)                                    (Read 137 times)
  4757. Subj: R: C PROGRAM
  4758.  
  4759. Shouldn't that declaration be:
  4760. char *counter;
  4761. ?
  4762. ---------------
  4763. ** Current thread: C PROGRAM
  4764.  
  4765. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25UP0997 Date: 05/25/89
  4766. From: TOM NOWALIS                                           Time: 08:16 pm
  4767.   To: GLEN THOMPSON (Rcvd)                                  (Read 138 times)
  4768. Subj: C PROGRAM
  4769.  
  4770. Glen, your suggestion worked Great! Thanks much for the info.
  4771. ---------------
  4772. ** Current thread: C PROGRAM
  4773.  
  4774. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25YF1029 Date: 05/29/89
  4775. From: DENNIS MEILICKE                                       Time: 11:17 am
  4776.   To: ERIC JABLOW (Rcvd)                                    (Read 136 times)
  4777. Subj: R: C PROGRAM
  4778.  
  4779. Isn't it supposed to be "The time has come, the *Walrus* said..."?
  4780.  
  4781. Dennis
  4782. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4783.  
  4784. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25TE3010 Date: 05/24/89
  4785. From: VICTOR DURA                                           Time: 10:50 am
  4786.   To: ALL                                                   (Read 130 times)
  4787. Subj: READING NEW MESSAGES
  4788.  
  4789. Hello All, I'm new to this bbs and I was wondering if anyone could tell me
  4790. how to get the read (N)ew message command to work properly. I've read all
  4791. the messages in this conference, and used the P and D commands, but
  4792. whenever I return to this conference and use the N command, the messages
  4793. start scrolling from the beginning of the message file, 3/24/89 it
  4794. believe.  This also happens in the other conference area I visit, so I'm
  4795. guessing I don't have some parameter set correctly. Can anyone suggesting
  4796. something?  Thanks for listening.
  4797. Vic Dura
  4798. ---------------
  4799. Following thread
  4800.  
  4801. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25TG1980 Date: 05/24/89
  4802. From: MARK DALLNER                                          Time: 12:33 pm
  4803.   To: VICTOR DURA (Rcvd)                                    (Read 131 times)
  4804. Subj: R: READING NEW MESSAGES
  4805.  
  4806. Vic,
  4807. After you have done a (P)ushed high once, all you need to do the next time
  4808. to read new messages is type (N)ew. Remember to (Q)uit a conference and
  4809. not (U)njoin. Unjoin trashes the message pointers because it thinks you no
  4810. longer wish to be a part of that particular conference subject.
  4811.  
  4812. Mark
  4813. ---------------
  4814. ** Current thread: READING NEW MESSAGES
  4815.  
  4816. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25UC0762 Date: 05/25/89
  4817. From: VICTOR DURA                                           Time: 08:12 am
  4818.   To: MARK DALLNER (Rcvd)                                   (Read 128 times)
  4819. Subj: R: READING NEW MESSAGES
  4820.  
  4821. Mark, I think that's the procedure I've been using, i.e. (P)ush once,
  4822. followed by a (N)ew at the beginning of the next session, followed
  4823. by a (Q) at the end of the session. I'll try again to make sure.
  4824. Thanks for your help...Vic
  4825. ---------------
  4826. ** Current thread: READING NEW MESSAGES
  4827.  
  4828. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25UD0862 Date: 05/25/89
  4829. From: MARK DALLNER                                          Time: 09:14 am
  4830.   To: VICTOR DURA (Rcvd)                                    (Read 131 times)
  4831. Subj: R: READING NEW MESSAGES
  4832.  
  4833. Vic,
  4834. Another way to handle the New message read is to type * at the main
  4835. confernce menu and all the topics you have joined will get the New scan.
  4836. This wasn't obvious to me at first.
  4837.  
  4838. Mark
  4839. ---------------
  4840. ** Current thread: READING NEW MESSAGES
  4841.  
  4842. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25VA3128 Date: 05/26/89
  4843. From: VICTOR DURA                                           Time: 06:52 am
  4844.   To: MARK DALLNER (Rcvd)                                   (Read 131 times)
  4845. Subj: R: READING NEW MESSAGES
  4846.  
  4847. Mark,
  4848. I didn't know about the *. I saw the explaination of it in the main menu,
  4849. but t it would cause the system to read messages in all areas, r
  4850. than the conferences you join. BTW, how does the system know you have
  4851. joined a particular conference. Is a user automatically "joined" to a
  4852. conference arer that he visits?  Thanks for the tip, I'll try it right
  4853. now.
  4854. Vic
  4855. ---------------
  4856. ** Current thread: READING NEW MESSAGES
  4857.  
  4858. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25VC1691 Date: 05/26/89
  4859. From: STEVEN KEY                                            Time: 08:28 am
  4860.   To: VICTOR DURA (Rcvd)                                    (Read 130 times)
  4861. Subj: R: READING NEW MESSAGES
  4862.  
  4863. Vic,
  4864.  
  4865. I think you are "joined: to everything unless you "unjoin".
  4866.  
  4867. Steven
  4868. ---------------
  4869. ** Current thread: READING NEW MESSAGES
  4870.  
  4871. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25ZK1589 Date: 05/30/89
  4872. From: MARK DALLNER                                          Time: 04:26 pm
  4873.   To: VICTOR DURA (Rcvd)                                    (Read 126 times)
  4874. Subj: R: READING NEW MESSAGES
  4875.  
  4876. Once you join a conference you will get to read new messages untill you
  4877. UNjoin it. If you quit, the pointers are reset for the next new scan.
  4878. ---------------
  4879. ** Current thread: READING NEW MESSAGES
  4880.  
  4881. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25^C2149 Date: 05/31/89
  4882. From: VICTOR DURA                                           Time: 08:35 am
  4883.   To: MARK DALLNER (Rcvd)                                   (Read 125 times)
  4884. Subj: R: READING NEW MESSAGES
  4885.  
  4886. Mark,
  4887. Thanks for the info...Vic
  4888. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4889.  
  4890. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25VH0196 Date: 05/26/89
  4891. From: VICTOR DURA                                           Time: 01:03 pm
  4892.   To: ALL                                                   (Read 133 times)
  4893. Subj: MSC WARNING MESSAGE
  4894.  
  4895.   Hello, I'm new to C programming, and wondering if anyone could help
  4896. with a question I have. The below segment of code results in the compiler
  4897. warning message from MSC 4.0 . The program links and runs ok, but I would
  4898. like to learn what causes the warning messge. I didn't write the code, and
  4899. being new to C, don't really know what it's doing. Thanks for your help.
  4900. ...Vic Dura
  4901. #define LINT_ARGS
  4902. #include <dos.h>
  4903. put_dta(p_dta)
  4904.    char *p_dta;
  4905. {
  4906.    union REGS inreg;
  4907.    union REGS outreg;
  4908.    inreg.h.ah = 0x1a;
  4909.    inreg.x.dx = p_dta;
  4910.    intdos(&inreg, &outreg);
  4911.    return (0);
  4912. }
  4913. /* the following warning message is produced */
  4914. putdta.c(9) : warning 47: '=' : different levels of indirection
  4915. ---------------
  4916. Following thread
  4917.  
  4918. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25VK2183 Date: 05/26/89
  4919. From: GRANT ELLSWORTH (Leader)                              Time: 04:36 pm
  4920.   To: VICTOR DURA (Rcvd)                                    (Read 140 times)
  4921. Subj: R: MSC WARNING MESSAGE
  4922.  
  4923. Warning derives from statement reading: inreg.x.dx = p_dta ...
  4924.  
  4925. p_dta is declared as a pointer to a character string
  4926. inreg.x.dx is declared as an integer ...
  4927.  
  4928. hence, you will have much trouble if you compile with anything other than
  4929. the small model where pointers are 16 bits (and therefore the same size as
  4930. integers).  In other memory models (compact, large, etc..) pointers are
  4931. assumed to be 32-bit entities (containing both segment and offset).
  4932.  
  4933. different levels of indirection derive from fact that  ... .dx has 0
  4934. levels of indirection,  while p_dta has 1.   Hope this makes sense. Grant
  4935. ---------------
  4936. ** Current thread: MSC WARNING MESSAGE
  4937.  
  4938. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25ZB0098 Date: 05/30/89
  4939. From: VICTOR DURA                                           Time: 07:01 am
  4940.   To: GRANT ELLSWORTH (Rcvd)                                (Read 126 times)
  4941. Subj: R: MSC WARNING MESSAGE
  4942.  
  4943. Grant<
  4944. Thanks for the reply. Yes it does make sence. I have compiled and used
  4945. this code without problem so far. It's one of several routines which
  4946. together expand a wild card file-spec into a list of file-specs. I'm just
  4947. learning C, so I'm hacking away on this piece of code to see how things
  4948. work. I'm going to try playing around with it a little more.
  4949. ....Vic
  4950. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  4951.  
  4952. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25ZQ2981 Date: 05/30/89
  4953. From: GRANT ELLSWORTH (Leader)                              Time: 09:49 pm
  4954.   To: RANDOLPH MACKENZIE (Rcvd)                             (Read 127 times)
  4955. Subj: R: NEED FILTER
  4956.  
  4957. Randolph,  There is a better way in DB3 to do this date conversion than
  4958. the way you chose ... use of the CTOD() with the substr fuction should
  4959. work fine ... To save time and too much double pass processing, try the
  4960. following:
  4961.  
  4962. 1.  Ammend your db3 structure for the initial XFER txt import so that
  4963.     a real date field is in the record AFTER the expected SDF based fields
  4964. 2.  Continue your import operation ,,, but do NOT index the file
  4965. 3.  With the file still un-indexed, process all the records with a short
  4966.     procedure which features the following stmt
  4967.  
  4968.      REAL_DATE = ctod('substr(txtdate,1,2)' + '/' .... etc... )
  4969. 4.  And then either index the file or modify structure to get rid of the
  4970.     EXECPC date field and then index file ...
  4971.  
  4972. I suspect that much of the extra time db3 is taking is because of the
  4973. extra indexing pass you employ.
  4974.  
  4975. Now, if you still think you need a subprogram to process the date field
  4976. leave some specs on the parameter passing conventions for use with DB#
  4977. or ANDSOR language programs, and maybe some-one will pick up the
  4978. challenge.  Or, if an extra pass preprocess over the XFERxxx.TXT is
  4979. acceptable, then it's a simple C program which will solve your problem.
  4980.  
  4981. Grant
  4982. ---------------
  4983. Following thread
  4984.  
  4985. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 25^C3519 Date: 05/31/89
  4986. From: MIKE CODY                                             Time: 08:58 am
  4987.   To: GRANT ELLSWORTH (Rcvd)                                (Read 129 times)
  4988. Subj: R: NEED FILTER
  4989.  
  4990. Exactly what I was talking about doing in clipper..you can insert the
  4991. slashes with the substring functions, but you will need to do you indexing
  4992. with the Str(year(),4,0)+str(month(),2,0)+str(day(),2,0) in the index
  4993. string. Unless you are only dealing with one year. DB3+ handles dates in
  4994. such a way that 01/01/89 is less than 12/31/88...ie like most raw
  4995. lanquages do. DBIV corrects that, but for 3 you will have to index as I
  4996. did above to get it to work.
  4997.  
  4998. Mike Cody
  4999. ---------------
  5000. ** Current thread: NEED FILTER
  5001.  
  5002. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A112045 Date: 06/01/89
  5003. From: GRANT ELLSWORTH (Leader)                              Time: 12:34 am
  5004.   To: MIKE CODY (Rcvd)                                      (Read 135 times)
  5005. Subj: R: NEED FILTER
  5006.  
  5007. Mike, I don't remember what DB3 or DB3+ do when indexing date fields.
  5008. But, I used an interesting trick back with db2 ...  I just stored date
  5009. as all one string (numerics as well) as yymmdd ,,, then indexed on the
  5010. one field ... no embedded slashes ...  maybe you could have your records
  5011. have 2 date fields - one for indexing, the other for display (with the
  5012. slashes, etc)... (Let's ccontinue this, if need be, in the db3 conference)
  5013. ... Grant
  5014. ---------------
  5015. ** Current thread: NEED FILTER
  5016.  
  5017. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A2I3537 Date: 06/02/89
  5018. From: MIKE CODY                                             Time: 02:58 pm
  5019.   To: GRANT ELLSWORTH (Rcvd)                                (Read 129 times)
  5020. Subj: R: NEED FILTER
  5021.  
  5022. I agree, and will leave you a note in the DB conference. I have had a few
  5023. problems with this myself...
  5024.  
  5025. Mike Cody
  5026. ---------------
  5027. ** Current thread: NEED FILTER
  5028.  
  5029. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AGR0255 Date: 06/12/89
  5030. From: DON BOWEN                                             Time: 10:04 pm
  5031.   To: MIKE CODY (Rcvd)                                      (Read 120 times)
  5032. Subj: R: NEED FILTER
  5033.  
  5034. Mike, just thought you might like a shorter way to index on a date.  I use
  5035. STR(YEAR(fld),4)+DTOC(fld) and it works great.  It also uses a multiple of
  5036. 4 bytes.  For what it's worth.
  5037.  
  5038. Don
  5039. ---------------
  5040. ** Current thread: NEED FILTER
  5041.  
  5042. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AHC3103 Date: 06/13/89
  5043. From: MIKE CODY                                             Time: 08:51 am
  5044.   To: DON BOWEN (Rcvd)                                      (Read 115 times)
  5045. Subj: R: NEED FILTER
  5046.  
  5047. Slick, I will try it out. I took one of Todds ideas and put the Inkey() to
  5048. good use. all my menus now sit in an Inkey() loop and if there is no user
  5049. input for about 30 seconds, they return to a main menu with a screen
  5050. blanker which is basically same idea as Todd's Update kickout. IE until it
  5051. gets key input, it just loops moving the blank message around the screen
  5052. with a counter loop. I even display time and date on screen at all times
  5053. ala Automenu style blanker box. Pretty slick and pro looking if I do say
  5054. so myself. I turn the cursor off and I get no screen flicker..very nice.
  5055.  
  5056. Mike Cody
  5057. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5058.  
  5059. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A1F2751 Date: 06/01/89
  5060. From: STEVEN KRUEGER                                        Time: 11:45 am
  5061.   To: ALL                                                   (Read 135 times)
  5062. Subj: C FOR MAC
  5063.  
  5064. Hello, If any one has experience with a good package of c for the mac
  5065. please leave me some e-mail.  Is lightspeed c okay? for $95.00?
  5066. Thank you.  Steve.
  5067. ---------------
  5068.  
  5069. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A1H3164 Date: 06/01/89
  5070. From: ABB INDUSTRIAL                                        Time: 01:52 pm
  5071.   To: ALL                                                   (Read 138 times)
  5072. Subj: DISABLING CTRL/ALT/DEL IN C
  5073.  
  5074. I am writing a pretty simple password program that I plan to use by having
  5075. it run, waiting for a password, on my machine at work so that I can call
  5076. in later using PC Anywhere III.  It is working fine except that I have yet
  5077. to find a way to disable the CTRL/ALT/DEL interrupt.  This appears to be
  5078. the only way for anyone to currently gain access past the password program
  5079. because turning the machine off and then back on will invoke the PS/2s
  5080. power-on password program.  I am aware that the PS/2s also have a keyboard
  5081. lock password that will do exactly what I am trying to do, however, the
  5082. PS/2 version will not accept the keystrokes from PC Anywhere III.  Anyway,
  5083. I am using Lattice C version 3.  If anyone has any suggestions on how I
  5084. can disable the CTRL/ALT/DEL function, they will be greatly appreciated.
  5085. The Lattice manuals haven't been much help so far.  Thanks in advance.
  5086.  
  5087. Mark Huff
  5088. Abb Industrial
  5089.  
  5090. ---------------
  5091. Following thread
  5092.  
  5093. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A2G1259 Date: 06/02/89
  5094. From: STEVEN KEY                                            Time: 12:21 pm
  5095.   To: ABB INDUSTRIAL (Rcvd)                                 (Read 137 times)
  5096. Subj: R: DISABLING CTRL/ALT/DEL IN C
  5097.  
  5098. Mark,
  5099.  
  5100. The only way that I can think of to disable ctrl-alt-del is to write a TSR
  5101. to replace the keyboard interrupt handler to prevent the BIOS seeing that
  5102. combo.  I think you would need the listing for the bios of your machine,
  5103. as the keyboard handler is pretty complex, and your program would probably
  5104. have to use some of the Bios ram to do the job right.  The status of those
  5105. three keys is stored by the Bios, and I think you would need to use that
  5106. info to allow other uses of those three keys, but just not the deadly
  5107. three fingered salute.
  5108.  
  5109. Have you searched the Mahoney collection to make sure something like that
  5110. is not there ?
  5111.  
  5112. Steven 
  5113. ---------------
  5114. ** Current thread: DISABLING CTRL/ALT/DEL IN C
  5115.  
  5116. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A2G2072 Date: 06/02/89
  5117. From: GRANT ELLSWORTH (Leader)                              Time: 12:34 pm
  5118.   To: ABB INDUSTRIAL (Rcvd)                                 (Read 134 times)
  5119. Subj: R: DISABLING CTRL/ALT/DEL IN C
  5120.  
  5121. Mark, the best way I can think of is to over-ride the intr19 (reboot
  5122. interrupt).  I'm not sure you can get in front of intr09 (keyboard)
  5123. enough to trap the c+a+del action.  Grant
  5124. ---------------
  5125. ** Current thread: DISABLING CTRL/ALT/DEL IN C
  5126.  
  5127. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A2G2998 Date: 06/02/89
  5128. From: STEVEN KEY                                            Time: 12:49 pm
  5129.   To: ABB INDUSTRIAL (Rcvd)                                 (Read 137 times)
  5130. Subj: R: DISABLING CTRL/ALT/DEL IN C
  5131.  
  5132. Mark,
  5133.  
  5134. There are two files in the Mahoney collection that claim to do what you
  5135. need = Noboot.zip and filter.com.
  5136.  
  5137. Filter is small, and noboot isn't - there may be source code in noboot.
  5138. You should be able to run filter from the  autoexec, but I don't 
  5139. think EXEC'ing it from inside your C code will work.
  5140.  
  5141. Steven
  5142. ---------------
  5143. ** Current thread: DISABLING CTRL/ALT/DEL IN C
  5144.  
  5145. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A2J3516 Date: 06/02/89
  5146. From: ABB INDUSTRIAL                                        Time: 03:58 pm
  5147.   To: STEVEN KEY (Rcvd)                                     (Read 133 times)
  5148. Subj: R: DISABLING CTRL/ALT/DEL IN C
  5149.  
  5150. Steven,
  5151.  
  5152. Thanks for the information.  I tried both FILTER.COM AND NOBOOT.ZIP and
  5153. they both work fine.  I'll just use a small batch file when I want to run
  5154. my password program and run one of the above two files first.  It will
  5155. certainly be easier than trying to include the code within my C program.
  5156.  
  5157. This added feature should leave my PC pretty secure while it waits for my
  5158. call with PcAnywhere.  At least it will keep the security guards from
  5159. using WordPerfect like we once caught them doing.  Oh by the way, please
  5160. note that my PS/2 is not a Model 30 286.  A friend at work stumbled across
  5161. a bug in the IBM power-on password program on that particular machine.  It
  5162. seems that if you hold down a key, any key, when turning the machine on -
  5163. you cause a startup error which prompts you in a nice graphical style to
  5164. press the F1 key.  Pressing F1 then puts you at the C: prompt, bypassing
  5165. the power-on "key" prompt.  Oh well, thanks again.
  5166.  
  5167. Mark Huff
  5168. ABB Industrial
  5169. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5170.  
  5171. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A3N2546 Date: 06/03/89
  5172. From: RANDOLPH MACKENZIE                                    Time: 07:42 pm
  5173.   To: ALL                                                   (Read 129 times)
  5174. Subj: FILTER
  5175.  
  5176. Message CC'd to:
  5177.      ALL
  5178.      MIKE CODY
  5179.  
  5180. I have the filter for the xfer.txt files and all is ok.
  5181. ---------------
  5182. Following thread
  5183.  
  5184. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A3Q3330 Date: 06/03/89
  5185. From: NICHOLAS STASKIEWICZ                                  Time: 09:55 pm
  5186.   To: ALL                                                   (Read 130 times)
  5187. Subj: POWERC
  5188.  
  5189. Does anyone use PowerC ??  I've read a few very negative messages on other
  5190. boards and was curious to see what I might see here.  Thanks.
  5191.  - Nick
  5192. ---------------
  5193. Following thread
  5194.  
  5195. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A4G0619 Date: 06/04/89
  5196. From: GRANT ELLSWORTH (Leader)                              Time: 12:10 pm
  5197.   To: NICHOLAS STASKIEWICZ (Rcvd)                           (Read 127 times)
  5198. Subj: R: POWERC
  5199.  
  5200. Nick, I have PowerC (from MIX).  It's a very good bargain for
  5201. price/features.  However, it is, in my opinion, at best a learning tool.
  5202. It supports only one memory model (medium, as I recollect).   It's about
  5203. as easy, if not easier, to use than Borland's TC2.0, but does not have
  5204. many of the bells and whistles.  For the $50, or so, it certainly is worth
  5205. the investment as an educational device before one takes the plunge into
  5206. one of the more expensive ("professional") C products = TC, MSC, WatC,
  5207. etc.   Grant
  5208. ---------------
  5209. ** Current thread: POWERC
  5210.  
  5211. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AA21907 Date: 06/06/89
  5212. From: NICHOLAS STASKIEWICZ                                  Time: 02:31 am
  5213.   To: GRANT ELLSWORTH (Rcvd)                                (Read 127 times)
  5214. Subj: R: POWERC
  5215.  
  5216. Thanks for the info Grant. I am learning, and don't want to spend a great
  5217. amount of $$$ and then find out I want to back out. May have to check into
  5218. a copy.   - Nick
  5219. ---------------
  5220. ** Current thread: POWERC
  5221.  
  5222. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AWG2433 Date: 06/27/89
  5223. From: JIM MONROE                                            Time: 12:40 pm
  5224.   To: NICHOLAS STASKIEWICZ (Rcvd)                           (Read 106 times)
  5225. Subj: R: POWERC
  5226.  
  5227. I have been using Powerc for some time now and find it quite adequate.
  5228. There are differences from TurboC but usually not extensive. I beleive
  5229. that for the money it is great.
  5230. JIm
  5231. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5232.  
  5233. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A4G0811 Date: 06/04/89
  5234. From: GRANT ELLSWORTH (Leader)                              Time: 12:13 pm
  5235.   To: JOE VINCENT (Rcvd)                                    (Read 128 times)
  5236. Subj: C CONF PRESENCE ...
  5237.  
  5238. Joe, in reply to your comments elsewhere about where I do and don't show
  5239. up in the conferences,  we're waiting here for your learned opinions on
  5240. the C issues of the day and intrigueing questions which require assist
  5241. from our resident experts.     Grant
  5242. ---------------
  5243. Following thread
  5244.  
  5245. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A4J3379 Date: 06/04/89
  5246. From: JOE VINCENT                                           Time: 03:56 pm
  5247.   To: GRANT ELLSWORTH (Rcvd)                                (Read 128 times)
  5248. Subj: R: C CONF PRESENCE ...
  5249.  
  5250. Gosh, Grant, I didn't mean to imply that you were doing anything other
  5251. than a top-drawer job of administering this conference.  ^V°
  5252.                                                           Ö
  5253.  
  5254. I just meant that there's a lot of traffic in Investments and we're doing
  5255. some unusual things, which demands more of my time.  Nevertheless, I will
  5256. do my best to be a good citizen of the C Language topic and pontificate as
  5257. only I can do on the C issues of the day.
  5258. ---------------
  5259. ** Current thread: C CONF PRESENCE ...
  5260.  
  5261. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A4R0660 Date: 06/04/89
  5262. From: GRANT ELLSWORTH (Leader)                              Time: 10:11 pm
  5263.   To: JOE VINCENT (Rcvd)                                    (Read 131 times)
  5264. Subj: R: C CONF PRESENCE ...
  5265.  
  5266. Hmmmm ... I guess I'll have to visit the Investments topic.  The subject
  5267. has always been a mystery to me.  Maybe you all can illuminate?
  5268.  
  5269. And, here in C-land, we DO look forward  to your "pontifications".
  5270.  
  5271. Let's start with "oops" and c++ .... start new thread and tell us your
  5272. views --- is this stuff for real?  is it a passing fad?  does it REALLY
  5273. expedite getting the job done?  can it be applied to ANY programming prob-
  5274. lem --- how about data compression?    Hmmmm.....   Grant
  5275. ---------------
  5276. ** Current thread: C CONF PRESENCE ...
  5277.  
  5278. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AAM0208 Date: 06/06/89
  5279. From: JOE VINCENT                                           Time: 06:03 pm
  5280.   To: GRANT ELLSWORTH (Rcvd)                                (Read 126 times)
  5281. Subj: R: C CONF PRESENCE ...
  5282.  
  5283. Sure, visit Investments.  We can be very illuminating, since at least one
  5284. of our participants is well lit at any given moment.  Seriously, we have a
  5285. wide range of experience, from novice to expert, in our participant base
  5286. and we encourage questions, from the simplistic to the complex.
  5287.  
  5288. Re: "OOPS" and C++, since C++ is essentially C-for-OOPS, I guess you're
  5289. really asking whether OOPS is real.  Well, James Martin seems to think so.
  5290. He has been a proponent of OOPS for at least five years.  A book of his,
  5291. published in 1984, discussed an object-oriented approach to systems
  5292. analysis and design and proposed the development of languages which could
  5293. manipulate objects directly.  Poof!  Now we have them.  I'll want to learn
  5294. more about how new language implementations have addressed OOP before I
  5295. can assess whether the concept has staying power or is just the
  5296. technological "fad du jour".
  5297.  
  5298.      -=≡{JOE}≡=-
  5299. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5300.  
  5301. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2A5R3073 Date: 06/05/89
  5302. From: PAT SHEA                                              Time: 10:51 pm
  5303.   To: ALL                                                   (Read 128 times)
  5304. Subj: K&R 2ND EDITION...
  5305.  
  5306. The following came oozing thru USENET today. . . .
  5307.  
  5308. FYI :
  5309.  
  5310.             Changes to _The_C_Programming_Language,_2nd_Edition_
  5311.  
  5312.     Now that X3J11 has voted to send its draft to X3, and further
  5313. substantive
  5314. changes in the draft standard are unlikely, Brian and I are preparing
  5315. fixes
  5316. to put in any future printings of the second edition of
  5317. _The_C_Programming_
  5318. Language_.  Fortunately, they are minor.  For the benefit of previous and
  5319. near-future purchasers, here are the changes that were made:
  5320.  
  5321. Two or three sentences in the Preface and Introduction are updated to de-
  5322. scribe the state of the Standard.
  5323.  
  5324. Minor typos are corrected on pages 87, 89, 164, 165, 168, 180; also 71,
  5325. 76,
  5326. 82, 121 atof is in <stdlib.h>, not <math.h>.
  5327.  
  5328. The inconspicuous references to noalias on pages 192 and 211 are removed.
  5329.  
  5330. The following paragraph is added to the end of section A6.6 (p 199):
  5331.  
  5332.     A pointer may be converted to another pointer whose type is the same
  5333.     except for the addition or removal of qualifiers (A4.4, A8.2) of the
  5334.     object type to which the pointer refers.  If qualifiers are added, the
  5335.     new pointer is equivalent to the old except for restrictions implied
  5336.     by the new qualifiers.  If qualifiers are removed, operations on the
  5337.     underlying object remain subject to the qualifiers in its actual
  5338.     declaration.
  5339.  
  5340. On p.199, beginning of section A6.8, "Any pointer may be converted to type
  5341. void *..." is changed to "Any pointer >to an object< may be converted to
  5342. type void*...".
  5343.  
  5344. On p.204, A7.4.4, "The operand of the unary + operator must have
  5345. arithmetic
  5346. or pointer type..." should read "must have arithmetic type...".
  5347.  
  5348. On p.206, A7.9, about relational operators: "Pointers to objects of the
  5349. same type may be compared..." is changed to "Pointers to objects of the
  5350. same type >(ignoring qualifiers)< may be compared...".
  5351.  
  5352. The indented material on p.209, "According to the restrictions...
  5353. relaxing
  5354. it." is removed.  [This is related to the paragraph added above.  The
  5355. wording of the draft of a year ago made it useless to take an (int *)
  5356. pointer, cast it to (const int *), then cast it back to (int *).]
  5357.  
  5358. On p.219 middle, initialization of structures, add "Unnamed bit-field
  5359. members are ignored, and are not initialized."
  5360.  
  5361. Appendix B changes:
  5362. p 242: Add "fflush(NULL) flushes all output streams." to fflush
  5363. description.
  5364.  
  5365. p 243: Change to "it must be called before reading, writing >or any other
  5366. operation<" in setvbuf description.
  5367.  
  5368. p 249: Add "Comparison functions treat arguments as unsigned char arrays."
  5369. to <string.h> description.
  5370.  
  5371. p 255: Change range of tm_sec to (0,61) for leap seconds.
  5372.  
  5373. p 255: Change CLK_TCK to CLOCKS_PER_SEC.
  5374.  
  5375. p 257: Drop U and L suffixes from <limits.h> constants.  tm_sec range is
  5376. (00,61) here too.
  5377.  
  5378. Appendix C changes:
  5379. p 261: Change "External declarations without any specifiers..." to
  5380. "External
  5381. >data< declarations without any specifiers...".
  5382.  
  5383. The index has been reprinted to fix a couple of typos and account for
  5384. motion
  5385. within Appendix A; one page of the table of contents is changed.
  5386. --
  5387. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  5388. -=
  5389.  Christopher T. Beierl                         Internet:
  5390. beierl_c@apollo.com
  5391.  Apollo Computer, Inc.      UUCP:
  5392. {mit-eddie,yale,uw-beaver}!apollo!beierl_c
  5393.  A Subsidiary of Hewlett-Packard                       Phone: (508)
  5394. 256-6600
  5395. ---------------
  5396. Following thread
  5397.  
  5398. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AAL2632 Date: 06/06/89
  5399. From: GRANT ELLSWORTH (Leader)                              Time: 05:43 pm
  5400.   To: PAT SHEA (Rcvd)                                       (Read 126 times)
  5401. Subj: R: K&R 2ND EDITION...
  5402.  
  5403. Pat, thx for the upload ... I've had the 2nd ed. for several months, but
  5404. have not seen the critical changes so concisely summarized.  Grant
  5405. ---------------
  5406. ** Current thread: K&R 2ND EDITION...
  5407.  
  5408. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AAQ3128 Date: 06/06/89
  5409. From: PAT SHEA                                              Time: 09:52 pm
  5410.   To: GRANT ELLSWORTH (Rcvd)                                (Read 124 times)
  5411. Subj: R: K&R 2ND EDITION...
  5412.  
  5413. grant :
  5414. honestly, now....  how could you ever think of K or R being anything BUT
  5415. concise ????
  5416. best regards,
  5417. pats.
  5418. ---------------
  5419. ** Current thread: K&R 2ND EDITION...
  5420.  
  5421. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ABD3439 Date: 06/07/89
  5422. From: GRANT ELLSWORTH (Leader)                              Time: 09:57 am
  5423.   To: PAT SHEA (Rcvd)                                       (Read 125 times)
  5424. Subj: R: K&R 2ND EDITION...
  5425.  
  5426. Now, now, I never stated that K+R was not Concise ..... I just stated that
  5427. I hadn't seen a concise abstract of the critical changes noted in the new
  5428. K+R,,,,,  GE
  5429. ---------------
  5430. ** Current thread: K&R 2ND EDITION...
  5431.  
  5432. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AC50520 Date: 06/08/89
  5433. From: PAT SHEA                                              Time: 05:08 am
  5434.   To: GRANT ELLSWORTH (Rcvd)                                (Read 122 times)
  5435. Subj: R: K&R 2ND EDITION...
  5436.  
  5437. but Grant....  if I read the first paragraph correctly, Dr. R., hisself!!!
  5438. is the original author of that posting.  'moug certain of the more
  5439. conservative C lang cults or groupies, the inference to be drawn from your
  5440. mssg MAY bring down a condemnation upon you similar to that which the
  5441. author, Rushdie <sp?> received - a horrible fate for our Leader.
  5442. best regards <and suggest you post a public apology> ~~~ ~~~~~~~
  5443. pats.
  5444. ---------------
  5445. ** Current thread: K&R 2ND EDITION...
  5446.  
  5447. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ACL3144 Date: 06/08/89
  5448. From: GRANT ELLSWORTH (Leader)                              Time: 05:52 pm
  5449.   To: PAT SHEA (Rcvd)                                       (Read 123 times)
  5450. Subj: R: K&R 2ND EDITION...
  5451.  
  5452. Pat,  But, Dr. R. had to abstract, concisely, from his OWN work to make
  5453. the posting .... for complimenting that I need to apologize???  It goes
  5454. to show ... authors are the BEST abstractors of their own work!  Grant
  5455. ---------------
  5456. ** Current thread: K&R 2ND EDITION...
  5457.  
  5458. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ACR0587 Date: 06/08/89
  5459. From: PAT SHEA                                              Time: 10:09 pm
  5460.   To: GRANT ELLSWORTH (Rcvd)                                (Read 122 times)
  5461. Subj: R: K&R 2ND EDITION...
  5462.  
  5463. just to be SAFE, 'suggest you burn some insense <sp?> when the wind is
  5464. blowing towards research.att.com
  5465.  
  5466. BUT
  5467.  
  5468. to cork it all off !!!  An ERRATA to the ERRATA has just been posted and
  5469. follows in the NEXT MSSG.
  5470.  
  5471. best regards,
  5472. pats.
  5473. ---------------
  5474. ** Current thread: K&R 2ND EDITION...
  5475.  
  5476. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ACR0788 Date: 06/08/89
  5477. From: PAT SHEA                                              Time: 10:13 pm
  5478.   To: GRANT ELLSWORTH (Rcvd)                                (Read 126 times)
  5479. Subj: R: K&R 2ND EDITION...
  5480.  
  5481. CORRECTIONS to EARLIER POSTING !!!!! <from USENET> /pats.
  5482. ^-^-^-^-^-^
  5483.    I was a bit surprised to see Chris Beierl's posting of the errata for
  5484.    K&R second edition.  More accurately, I was surprised to hear that it
  5485.    was present in his copy of the book, since it was prepared for post-
  5486.    ing to this group.  We thought we gave it to our editor at Prentice-
  5487.    Hall for his information; he didn't tell us that it was to be in-
  5488.    cluded as an errata list, or even let us know that this was possible.
  5489.    We would have worded it a bit differently.
  5490.  
  5491.    In any event, here is what we have now.  All of these changes should
  5492.    be in the second printing.  The main difference between this and what
  5493.    Beierl posted is the addition of the statement about initialization
  5494.    of automatic arrays on p. 86.
  5495.  
  5496.    [Incidentally, the range of tm_sec is really 0 through 61.  It seems
  5497.    that two consecutive leap seconds are permitted.]
  5498.  
  5499.         Dennis Ritchie
  5500.         dmr@research.att.com
  5501.         att!research!dmr
  5502.  
  5503. ---------
  5504.    Now that X3J11 has voted to send its draft to X3, and further
  5505.    substantive changes in the draft standard are unlikely, Brian and I
  5506.    are preparing fixes to put in any future printings of the second
  5507.    edition of "The C Programming Language." Fortunately, they are minor.
  5508.    For the benefit of previous and near-future purchasers, here are the
  5509.    changes that were made:
  5510.  
  5511.    Two or three sentences in the Preface and Introduction are updated to
  5512.    describe the state of the Standard.
  5513.  
  5514.    atof is in stdlib.h, not math.h: changes 71, 76, 82, 121.
  5515.  
  5516.    On page 86, error corrected:  missing automatic array initializers
  5517.    are zero too.
  5518.  
  5519.    On page 168: changed 1 to 1.0 in frand() to avoid potential
  5520.    overflow.
  5521.  
  5522.    Minor typos are corrected on pages 87, 89, 164, 165, 180.
  5523.  
  5524.    The inconspicuous references to 'noalias' on pages 192 and 212 are
  5525.    removed.
  5526.  
  5527.    The following paragraph is added to the end of section A6.6 (p 199):
  5528.  
  5529.         A pointer may be converted to another pointer whose type
  5530.         is the same except for the addition or removal of qualifiers
  5531.         (A4.4, A8.2) of the object type to which the pointer
  5532.         refers.  If qualifiers are added, the new pointer is
  5533.         equivalent to the old except for restrictions implied
  5534.         by the new qualifiers.  If qualifiers are removed, operations
  5535.         on the underlying object remain subject to the qualifiers
  5536.         in its actual declaration.
  5537.  
  5538.    On p. 199, beginning of section A6.8, "Any pointer may be converted
  5539.    to type void *..." is changed to "Any pointer >to an object< may be
  5540.    converted to type void *...".
  5541.  
  5542.    On p. 204, A7.4.4, "The operand of the unary + operator must have
  5543.    arithmetic or pointer type..." should read "must have arithmetic
  5544.    type...".
  5545.  
  5546.    On p. 206, A7.9, about relational operators:  "Pointers to objects of
  5547.    the same type may be compared..." is changed to "Pointers to object
  5548.    of the same type >(ignoring any qualifiers)< may be compared...".
  5549.  
  5550.    The indented material on p. 209, "According to the restrictions...
  5551.    relaxing it." is removed.   [This is related to the paragraph added
  5552.    above.  The wording of the draft of a year ago made it useless to
  5553.    take an (int *) pointer, cast it to (const int *), then cast it back
  5554.    to (int *).]
  5555.  
  5556.    On p. 219 middle, initialization of structures, add "Unnamed
  5557.    bit-field members are ignored, and are not initialized."
  5558.  
  5559. Appendix B changes:
  5560.  
  5561.    p 242:  add "fflush(NULL) flushes all output streams." to fflush
  5562.            description.
  5563.    p 243:  change to "it must be called before reading, writing >or any
  5564.            other operation<" in setvbuf description.
  5565.    p 249:  add "Comparison functions treat arguments as unsigned char
  5566.            arrays." to string.h description.
  5567.    p 255:  change range of tm_sec to (0,61) for leap seconds.
  5568.            CLK_TCK was changed late (12/15/88) to CLOCKS_PER_SEC.
  5569.    p 257:  drop U and L suffixes from <limits.h> constants.
  5570.            tm_sec range (00,61) here too.
  5571.  
  5572. Appendix C change:
  5573.  
  5574.    p 261:  Change "External declarations without any specifiers..." to
  5575.            "External >data< declarations without any specifiers...".
  5576.  
  5577. The index has been reprinted to fix a couple of typos and account for
  5578. motion within Appendix A;  one page of the table of contents is changed.
  5579. ---------------
  5580. ** Current thread: K&R 2ND EDITION...
  5581.  
  5582. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ADD2013 Date: 06/09/89
  5583. From: GRANT ELLSWORTH (Leader)                              Time: 09:33 am
  5584.   To: PAT SHEA (Rcvd)                                       (Read 118 times)
  5585. Subj: R: K&R 2ND EDITION...
  5586.  
  5587. OK.  The incense is burning ... and the fires will be kept on auto for
  5588. eternity .....
  5589. ---------------
  5590. ** Current thread: K&R 2ND EDITION...
  5591.  
  5592. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ADD2338 Date: 06/09/89
  5593. From: GRANT ELLSWORTH (Leader)                              Time: 09:38 am
  5594.   To: PAT SHEA (Rcvd)                                       (Read 118 times)
  5595. Subj: R: K&R 2ND EDITION...
  5596.  
  5597. I'm wondering whether any of us who purchased the 1st printing will be
  5598. able to obtain the 2nd printing at a discount --- if it contains
  5599. corrections noted in the errata.  Or am I required to pencil in the
  5600. fixes in my 1st printing in order to be consistent withthe true doctrine?
  5601.  
  5602. Any notions?    Grant
  5603. ---------------
  5604. ** Current thread: K&R 2ND EDITION...
  5605.  
  5606. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ADQ0480 Date: 06/09/89
  5607. From: PAT SHEA                                              Time: 09:08 pm
  5608.   To: GRANT ELLSWORTH (Rcvd)                                (Read 117 times)
  5609. Subj: R: K&R 2ND EDITION...
  5610.  
  5611. GOOD SHOW !!!
  5612. ---------------
  5613. ** Current thread: K&R 2ND EDITION...
  5614.  
  5615. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ADQ0721 Date: 06/09/89
  5616. From: PAT SHEA                                              Time: 09:12 pm
  5617.   To: GRANT ELLSWORTH (Rcvd)                                (Read 117 times)
  5618. Subj: R: K&R 2ND EDITION...
  5619.  
  5620. perhaps we should write to Prentice-Hill 'bout their Upgrade Policy....
  5621.  
  5622. actually, my guess is that the first printing will be worth more in some
  5623. years to collectors then we paid for it.  'hate to tell you what i've been
  5624. offered for some of my EARLY BL Tech papers.
  5625.  
  5626. pats.
  5627. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5628.  
  5629. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ABI3036 Date: 06/07/89
  5630. From: MILTON SHAW                                           Time: 02:50 pm
  5631.   To: ALL                                                   (Read 143 times)
  5632. Subj: TURBO C & CLIPPER
  5633.  
  5634. I am looking for what compiler switches I need to use to compile Turbo C
  5635. programs for use with Clipper.  I use 'C' to write functions for clipper
  5636. and to date have only used MSC 5.1 for this, when I try it with Turbo C I
  5637. can't pass parameters to or from the 'C' programs.  Any help in this area
  5638. would be appreciated, I have Turbo C 2.0 and Clipper Summer 87.
  5639. ---------------
  5640. Following thread
  5641.  
  5642. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AH53356 Date: 06/13/89
  5643. From: MILTON SHAW                                           Time: 05:55 am
  5644.   To: ROBERT BALSOVER (Rcvd)                                (Read 135 times)
  5645. Subj: R: TURBO C & CLIPPER
  5646.  
  5647. Yea, I link in CL.LIB with the application.  Apparently the big problem
  5648. must be the floating point emulation.  MS'C' supports this but apparently
  5649. Turbo'C' doesn't.  Left a message with Borland on Compuserve to see if
  5650. they can resolve the problem.                         Milt Shaw
  5651. ---------------
  5652. ** Current thread: TURBO C & CLIPPER
  5653.  
  5654. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AIA0664 Date: 06/14/89
  5655. From: MILTON SHAW                                           Time: 06:11 am
  5656.   To: ROBERT BALSOVER (Rcvd)                                (Read 134 times)
  5657. Subj: R: TURBO C & CLIPPER
  5658.  
  5659. Robert,
  5660. The -ml is in the compiler switches I have set,  interesting though, I
  5661. attempted to compile a TurboC .C program with my CL.EXE (MSC compiler),
  5662. no graphic commands, but it worked.  I'm going to play around some more
  5663. with that, but my primary interest is to get the BGI graphics commands to
  5664. interface.  Second option is to link in Turbo Pascal obj's, since TP also
  5665. has the BGI graphic interface.
  5666. ---------------
  5667. ** Current thread: TURBO C & CLIPPER
  5668.  
  5669. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AK13249 Date: 06/16/89
  5670. From: ROBERT BALSOVER                                       Time: 12:54 am
  5671.   To: MILTON SHAW (Rcvd)                                    (Read 133 times)
  5672. Subj: R: TURBO C & CLIPPER
  5673.  
  5674. Milton,
  5675. As a after-thought...  I was just thumbing through the new DDJ and saw
  5676. the advertisment for Code Base 4, this made me think of you.  Why not
  5677. skip Clipper in this case.  You already have a good C compiler with
  5678. a nice graphics library.  If used Code Base you wouldn't have these linker
  5679. problems (I am not being paid by Sequiter Software Inc. to write this!!).
  5680. There is a full page advertisment on pg.#105 of DDJ July '89 describing
  5681. thier product and I have heard from people that I know that it is good.
  5682. I personally plan on purchasing it this month.  You don't have to pay
  5683. the list $295 for it, I saw it listed in the same mag on pg.#151 for
  5684. $219 (Programmer's Connection).
  5685. Just thought you'd like to know.
  5686. Bob
  5687. ---------------
  5688. ** Current thread: TURBO C & CLIPPER
  5689.  
  5690. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AK53574 Date: 06/16/89
  5691. From: MILTON SHAW                                           Time: 05:59 am
  5692.   To: ROBERT BALSOVER (Rcvd)                                (Read 129 times)
  5693. Subj: R: TURBO C & CLIPPER
  5694.  
  5695. The Code Base 4 maybe the way to go, I haven't looked at it yet.  The
  5696. graphics in MSC work fine, just I'm a little lazy in that I've seen the
  5697. advanced graphics commands of TC and have always worked with the theory
  5698. not to reinvent the wheel unless I have to.  Apparently I have too in this
  5699. case if I want equivalent BGI graphic commands available for Clipper.  I
  5700. have SilverPaint and DGE commercial graphic packages now, both work great,
  5701. but like most programmers I thought I attempt to make my own PD version.
  5702. Thanks for the info on Code Base 4.         Milt
  5703. ---------------
  5704. ** Current thread: TURBO C & CLIPPER
  5705.  
  5706. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AV51766 Date: 06/26/89
  5707. From: MILTON SHAW                                           Time: 05:29 am
  5708.   To: ROBERT BALSOVER (Rcvd)                                (Read 121 times)
  5709. Subj: R: TURBO C & CLIPPER
  5710.  
  5711. So far I haven't really had the luck I was hoping for, I have been able to
  5712. generate some functions, none mathematical, but the new TLINK that came
  5713. with Turbo 'C' 2.0 does generate some error codes, if I use the older
  5714. version that I have from Prolog, I don't get the error.  Now I'm useing
  5715. the MSC compiler to compile the code, whether written in Turbo or MS and
  5716. Link from MS to link them.  Graphics from TC still don't work properly,
  5717. just the ones from MSC.  I need study BGI more and figure out how it is
  5718. affecting the process.
  5719. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5720.  
  5721. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AEE0643 Date: 06/10/89
  5722. From: JIM ROBESON                                           Time: 10:10 am
  5723.   To: ALL                                                   (Read 125 times)
  5724. Subj: MOON PHASES
  5725.  
  5726. This may seem like a dumb question to some, but if you are interested,
  5727. you'll understand....
  5728. I'm looking for an equation or algorythem for computing the phase of the
  5729. moon, for any date.  The normal text book equations usually work for only
  5730. aproximations.
  5731. What would really be nice is a book (or file) that shows all sorts of
  5732. those funny equations: like Julian date, normalizing dates (relative to a
  5733. specific date), and so forth.
  5734. Any help would be appreciated..
  5735. Thanks,
  5736. Jim Robeson  Pacific Grove, CA.
  5737. ---------------
  5738. Following thread
  5739.  
  5740. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AEQ3226 Date: 06/10/89
  5741. From: PAT SHEA                                              Time: 09:53 pm
  5742.   To: JIM ROBESON (Rcvd)                                    (Read 125 times)
  5743. Subj: R: MOON PHASES
  5744.  
  5745. jim...
  5746. you can pick up just about all of the date-type functions <to and from
  5747. julian, zeller, etc> in C from easter.zip in mahoney collection.  the
  5748. 'true' phases of the moon - i can't help you with.
  5749. pats.
  5750. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5751.  
  5752. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AFM2023 Date: 06/11/89
  5753. From: TOM NOWALIS                                           Time: 06:33 pm
  5754.   To: ALL                                                   (Read 127 times)
  5755. Subj: PRINTING
  5756.  
  5757. I am rather a novice when it comes to C Programming. But I am learning
  5758. everyday. AS this is the case I am in need of some help. I am trying to
  5759. route a string to the printer. None of my programming books explain this
  5760. very well. Actually they don't explain this at all. Is their anyone who
  5761. can help with a brief explanation and code demonstration?
  5762. ---------------
  5763. Following thread
  5764.  
  5765. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AGL3463 Date: 06/12/89
  5766. From: GRANT ELLSWORTH (Leader)                              Time: 05:57 pm
  5767.   To: TOM NOWALIS (Rcvd)                                    (Read 123 times)
  5768. Subj: R: PRINTING
  5769.  
  5770. Tom, There is more than one way to write to the printer.  I prefer the
  5771. following ...
  5772.  
  5773.    FILE * printer;
  5774.     ....
  5775.    fopen(printer,"prn", ...); /* see C funct lib for details */
  5776.    fprintf(printer," ...(pattern)", variables, .....);
  5777.     /*  OR  */
  5778.    fputs(string);  /* where 'string' is defined as 'char * string;' */
  5779.    fputs(" my string of characters ");
  5780.  
  5781.    ... etc....
  5782.  
  5783.    fclose(printer);
  5784.  
  5785. Grant
  5786. ---------------
  5787. ** Current thread: PRINTING
  5788.  
  5789. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AHS3426 Date: 06/13/89
  5790. From: DAVID NYE                                             Time: 11:57 pm
  5791.   To: TOM NOWALIS (Rcvd)                                    (Read 116 times)
  5792. Subj: R: PRINTING
  5793.  
  5794. In Turbo C you can use 'stdprn' instead of a file pointer for any of the
  5795. functions which will write to a stream, e.g.:
  5796.  
  5797.   fputs("This is a string", stdprn);
  5798.  
  5799. DeSmet C uses the same trick but uses 'stdprt' for the name of the
  5800. predefined stream instead of 'stdprn'.  I suspect most Cs will support
  5801. this.  Look in your manual under stream level functions.
  5802. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5803.  
  5804. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AIQ2770 Date: 06/14/89
  5805. From: TOM FELLER                                            Time: 09:46 pm
  5806.   To: ALL                                                   (Read 115 times)
  5807. Subj: RTLINK
  5808.  
  5809. Hi All,
  5810. It's bad mouth time again! Time to bad mouth RTLINK.
  5811. The company I work for, uses Turbo C to develop a large database
  5812. application. Back in Febuary we realized we were running out of memory
  5813. under MS-DOS on a Novell network with the Btrieve interface.
  5814. So, we looked for a overlay linker. We found RTLINK. Well, it seemed
  5815. to kind of work, with some bugs. These bugs were verified by the people
  5816. at Pocket Soft, makers of RTLINK. Well, needless to say it turned out
  5817. to be impossible to make the application work with RTLINK because of
  5818. the bugs. The program would not load the overlay correctly and would
  5819. start running in some unrelated part of the program. Well we tried to
  5820. convert to MSC 5.0 but the code was 10% larger than TC with all the
  5821. optimization for size set on. That resulted in 30k or more of code that
  5822. would be extra overlays and would make the program slloooowww. Also,
  5823. MSC compiled sloooowww. And Quick C would not compile on our network,
  5824. not enough memory, and the network only needed 50k. So, we looked again
  5825. and found PLINK from Phoenix Tech. ala Phoenix BIOS. Well, PLINK86 works
  5826. great and we now have a application that takes 210k to load and its
  5827. over 355k in EXE size. I retried RTLINK and it would always crash!!!
  5828. Well, I asked for a refund for RTLINK and I was withen the 30 days.
  5829. Over a month and a half later, no refund. $200.00 down the drain!
  5830. They had a "No risk" 30 day refund policy. B.S.! The risk of our
  5831. application being done on time was a big risk. When I talked to them about
  5832. the bugs and fixes they said that a upgrade was due in a month or so.
  5833. Great! our system had to be finished in 3 weeks. End of story.
  5834. \Tom Feller\
  5835. ---------------
  5836. Following thread
  5837.  
  5838. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AJM2082 Date: 06/15/89
  5839. From: GRANT ELLSWORTH (Leader)                              Time: 06:34 pm
  5840.   To: TOM FELLER (Rcvd)                                     (Read 115 times)
  5841. Subj: R: RTLINK
  5842.  
  5843. Tom, I've seen similar commentary about the virtues  of PLINK.  I think
  5844. DataStorm (Procomm, Procomm+) uses it for the PROCOMM+ program.  Grant
  5845. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  5846.  
  5847. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ALR2478 Date: 06/17/89
  5848. From: JOHN ABATTE                                           Time: 10:41 pm
  5849.   To: ALL                                                   (Read 121 times)
  5850. Subj: PASSING PARMS
  5851.  
  5852.     I just started a course in C programming this past Monday and I'm
  5853. running into a problem with variable values being modified using the
  5854. "scanf();" function along with floating point formats. The test program
  5855. below should call two functions, first(); and secnd();, to get values
  5856. for "x" and "y" respectively. After the call to first(); is completed
  5857. the "Watch window" in Turbo C shows everything to be normal. For example
  5858. if I enter 10.0 to the prompt for the first number, "a", "x" then gets
  5859. the value 10.0. But AFTER the call to secnd(); has finished the value
  5860. for "y" is correct, but the value for "x" has changed to 10.01563. I
  5861. don't understand why it does this. Can someone please explain why this
  5862. happens? I'd sure appreciate the help.
  5863.  
  5864. #include <stdio.h>
  5865.  
  5866. main()
  5867. {
  5868.   float x, y, result;
  5869.  
  5870.   x = first();
  5871.   y = secnd();
  5872. result = x * y;
  5873.   printf("\nThe product of %f x %f = %f", x, y, result);
  5874. }
  5875.  
  5876. first(float a)
  5877. {
  5878.   printf("\n Please enter the first number: ");
  5879. scanf("%f", &a);
  5880.   return a;
  5881. }
  5882.  
  5883. secnd(float b)
  5884. {
  5885.   printf("\nPlease enter the second number: ");
  5886. scanf("%f", &b);
  5887.   return b;
  5888. }
  5889.  
  5890. Thanks in advance...John.
  5891. ---------------
  5892. Following thread
  5893.  
  5894. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMG0679 Date: 06/18/89
  5895. From: ROBERT BALSOVER                                       Time: 12:11 pm
  5896.   To: JOHN ABATTE (Rcvd)                                    (Read 117 times)
  5897. Subj: R: PASSING PARMS
  5898.  
  5899. John,
  5900. You are calling first & second with no parms, but in the functions listed
  5901. ie. first(float a){    'a' is declared as being passed to the function.
  5902. the function is declared with no type which in C defaults to returning
  5903. type int not float.   First and second should declared something like:
  5904. float first(void)
  5905. {
  5906.     float b;
  5907.     puts("Please enter your first number: ");
  5908.     scanf....... etc.
  5909. I hope that clears up your problem.
  5910. Bob
  5911. ---------------
  5912. ** Current thread: PASSING PARMS
  5913.  
  5914. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMJ0770 Date: 06/18/89
  5915. From: POLLY LEIBE                                           Time: 03:12 pm
  5916.   To: JOHN ABATTE (Rcvd)                                    (Read 113 times)
  5917. Subj: R: PASSING PARMS
  5918.  
  5919. Had a few secs so to perhaps clarify Roberts answer and more or less ANSI:
  5920.  
  5921. #include <stdio.h>
  5922.  
  5923. /* prototypes */
  5924. float first(void);
  5925. float secnd(void);
  5926.  
  5927. void main()
  5928. {
  5929.   float x, y, result;
  5930.   x=first();
  5931.   y=secnd();
  5932.   result = x * y;
  5933.   printf("\nThe product of %f x %f = %f", x, y, result);
  5934. }
  5935.  
  5936. float first(void)
  5937. {
  5938.   float a;
  5939.   printf("\n Please enter the first number: ");
  5940.   scanf("%f", &a);
  5941.   return a;
  5942. }
  5943.  
  5944. float secnd(void)
  5945. {
  5946.   float b;
  5947.   printf("\nPlease enter the second number: ");
  5948.   scanf("%f", &b);
  5949.   return b;
  5950. }
  5951.  
  5952. Turning on the ANSI compile option might help you past some of these types
  5953. of errors as it forces a little more discipline (and verbosity).
  5954.  
  5955. Leibe
  5956. ---------------
  5957. ** Current thread: PASSING PARMS
  5958.  
  5959. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMJ0775 Date: 06/18/89
  5960. From: JOHN ABATTE                                           Time: 03:12 pm
  5961.   To: ROBERT BALSOVER (Rcvd)                                (Read 112 times)
  5962. Subj: R: PASSING PARMS
  5963.  
  5964. Thanks for the feedback Bob. I did actually try declaring the functions to
  5965. be type float after I posted the message, but it still keeps modifying the
  5966. "x" variable after the call to float second(). It's still got me stymied.
  5967. I also read today about using pointers to return multiple values from a
  5968. function, and while that may be a solution to fix the problem, it still
  5969. doesn't explain why "x" is being changed. I've been scratching my head on
  5970. this one for a few days now.
  5971. Thanks again for the suggestion.
  5972. Ciao for now...John
  5973. ---------------
  5974. ** Current thread: PASSING PARMS
  5975.  
  5976. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMJ0987 Date: 06/18/89
  5977. From: JOHN ABATTE                                           Time: 03:16 pm
  5978.   To: POLLY LEIBE (Rcvd)                                    (Read 112 times)
  5979. Subj: R: PASSING PARMS
  5980.  
  5981. Thanks for the suggestion Polly. I'll try your suggestion and see if it
  5982. works. I already went back and declared the functions to be type float and
  5983. that alone didn't solve it. I'll give the ANSI compile option a shot.
  5984. Ciao for now...John
  5985. ---------------
  5986. ** Current thread: PASSING PARMS
  5987.  
  5988. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMN3517 Date: 06/18/89
  5989. From: POLLY LEIBE                                           Time: 07:58 pm
  5990.   To: JOHN ABATTE (Rcvd)                                    (Read 110 times)
  5991. Subj: R: PASSING PARMS
  5992.  
  5993. You might also turn on all warnings.  It's a bit maddening at first when
  5994. you get as many lines (or more) of msgs as are contained in your prog, but
  5995. it does help to learn the language.  Just remember that when you get
  5996. multiple errors on a given line that C compilers are much like those in
  5997. other langs; if you fix the 1st one many of the others, if not all, will
  5998. disappear as they were artifacts caused by that one.
  5999.  
  6000. If I recall it right, your problem was caused by a difference between your
  6001. declaration and usage.  In main you had 'x=first();' in which case no parm
  6002. is passed & an int func return val expected unless told otherwise.
  6003. However, as you've declared x as a float, the result is unpredictable at
  6004. best.  You either need:
  6005. void main()
  6006. {
  6007.    .
  6008.   x=first();
  6009.    .
  6010. }
  6011. and
  6012. float first(void){}
  6013.  
  6014. OR
  6015.  
  6016. void main()
  6017. {   .
  6018.    first(x);
  6019.     .
  6020. }
  6021. and
  6022. void first(float a){}
  6023.  
  6024. Leibe
  6025. ---------------
  6026. ** Current thread: PASSING PARMS
  6027.  
  6028. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AN10058 Date: 06/19/89
  6029. From: ROBERT BALSOVER                                       Time: 12:00 am
  6030.   To: JOHN ABATTE (Rcvd)                                    (Read 114 times)
  6031. Subj: R: PASSING PARMS
  6032.  
  6033. John,
  6034. Did you look at the part in the declaration where you didn't pass a parm
  6035. yet you declared the function as having a float passed to it?
  6036. I don't know if its the problem but it is incorrectly done.
  6037. Again in case you didn't see it:
  6038. you call it with
  6039. a=first()
  6040. printf("a=%f", a);
  6041. but you declared it as
  6042. first(float a)
  6043. {
  6044.      scanf(......);
  6045.      return a;
  6046. }
  6047. when it should be like:
  6048. float first(void)
  6049. {
  6050.      float a;
  6051.      scanf(........);
  6052.      return a;
  6053. }
  6054. see the difference? first(float a)  and first(void)
  6055. Bob
  6056. P.S. second() has the same error.
  6057. ---------------
  6058. ** Current thread: PASSING PARMS
  6059.  
  6060. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANQ0918 Date: 06/19/89
  6061. From: JOHN ABATTE                                           Time: 09:15 pm
  6062.   To: ROBERT BALSOVER (Rcvd)                                (Read 110 times)
  6063. Subj: PASSING PARMS
  6064.  
  6065. Howdy,
  6066.  
  6067.     I studied both your suggestions off-line a bit more and checked the
  6068. function calls for "first()" and "secnd()" and sure enough, I screwed up
  6069. on the way I called them, even after declaring them type float. Still
  6070. kept telling them to take parms even when I wasn't passing any. Thanks
  6071. to both of you for pointing that out. Works like a charm now.
  6072.  
  6073.     Looks like I may have to become a regular on this conference seeing
  6074. as how I'm just starting to learn C. I can actually get a quicker reply
  6075. here than I can from the college since the instructor only checks in
  6076. every other day.
  6077.  
  6078.     Thanks again for the help.
  6079.  
  6080. Ciao for now...John.
  6081. ---------------
  6082. ** Current thread: PASSING PARMS
  6083.  
  6084. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANR1819 Date: 06/19/89
  6085. From: ROBERT BALSOVER                                       Time: 10:30 pm
  6086.   To: JOHN ABATTE (Rcvd)                                    (Read 108 times)
  6087. Subj: R: PASSING PARMS
  6088.  
  6089. Where are you going to school?
  6090. Bob
  6091. ---------------
  6092. ** Current thread: PASSING PARMS
  6093.  
  6094. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APP2886 Date: 06/20/89
  6095. From: JOHN ABATTE                                           Time: 08:48 pm
  6096.   To: ROBERT BALSOVER (Rcvd)                                (Read 113 times)
  6097. Subj: R: PASSING PARMS
  6098.  
  6099. I'm taking the class at the Houston Community College. They offer the
  6100. course by modem and with my schedule and a two-year-old to take care of
  6101. nights while the wife is at work, it's the only way I can manage it. So ar
  6102. [far] I'm enjoying it. It's rather tricky to get used to and figure out
  6103. everything, but I'd taken the pre-req for it last semester, a structured
  6104. programming class using Pascal. Whew! World of difference between the two.
  6105. The only other programming I had was about 15 years ago (right after
  6106. computers were invented, I think :-). That was a FORTRAN course I had in
  6107. college. Ancient stuff by today's standards. Punch cards, dumb terms, etc.
  6108. Anyhow, I appreciate your helping out like that. No doubt the next 9 weeks
  6109. are going to produce a slew of questions from me. I'm trying to digest the
  6110. concept of pointers right now, or more accurately, how to use them. I
  6111. understand *what* they are, just don't know how to use them yet.
  6112. Be talking atcha...John.
  6113. ---------------
  6114. ** Current thread: PASSING PARMS
  6115.  
  6116. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APS1179 Date: 06/20/89
  6117. From: PATRICK LEMIRANDE                                     Time: 11:19 pm
  6118.   To: JOHN ABATTE (Rcvd)                                    (Read 112 times)
  6119. Subj: R: PASSING PARMS
  6120.  
  6121. John,
  6122.  
  6123.      Wow, a C class by modem.  I wish I had taken it also.  I always wish
  6124. I could take my Data base class from Whitewater by modem.  It is a pane
  6125. driving there three days a week just to sit in on the lecture.
  6126.  
  6127.      Once last spring I drove in a snow storm.  Spun out once and got
  6128. shaken by a SEMI on the way.  Whan I arrived we took quiz that I finished
  6129. in ten minutes.  Before I started my hour + treck home through the snow I
  6130. mentioned to the teacher that there has to be a better way.
  6131.  
  6132.      So you have a two year old hanging around the computer.  Just wait
  6133. intil he/she walkes up to your compute and does a power down.  Then says:
  6134. "Hey daddy, I turned your compute off for you."   (smile)
  6135.  
  6136. Patrick
  6137. ---------------
  6138. ** Current thread: PASSING PARMS
  6139.  
  6140. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQ11157 Date: 06/21/89
  6141. From: ROBERT BALSOVER                                       Time: 01:19 am
  6142.   To: JOHN ABATTE (Rcvd)                                    (Read 115 times)
  6143. Subj: R: PASSING PARMS
  6144.  
  6145. Hey, was that you standing in front of me and the card reader?  I think
  6146. I was one of the last fortunate students at the University of Wisconsin
  6147. -Milwaukee to have to do cards.  What a drag!  Once you get used to
  6148. pointers you'll wonder how things were done without them.  Just remeber
  6149. that your TA or Professor is addicted to comments, make him OD on them
  6150. and he'll be a happy camper.
  6151. Bob
  6152. ---------------
  6153. ** Current thread: PASSING PARMS
  6154.  
  6155. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARQ1712 Date: 06/22/89
  6156. From: JOHN ABATTE                                           Time: 09:28 pm
  6157.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 113 times)
  6158. Subj: R: PASSING PARMS
  6159.  
  6160. Whew, sounds like a nasty way to have to travel to class. Interesting
  6161. thing is I only live 5 minutes from campus, but I just don't have the time
  6162. to spend sitting in a classroom. I'm going to try to arrange to take the
  6163. class in person next semester. It may be convenient to take classes by
  6164. modem, but only to a point. Try asking your modem a question about
  6165. programming! Seriously, that is a drawback, esp if the instructor is out
  6166. of town for the weekend, your lab is due Monday 7:00 AM, and your stuck on
  6167. a problem. Thank's to this conference I was able to get an answer three
  6168. days before the instructor replied!
  6169. Now as to two year olds, she hasn't yet turned off the power on me, but
  6170. she does like to fool with the "nuke" button on the front panel now and
  6171. again. The worst was when I came home one day and found four empty floppy
  6172. jackets on the desk. I figured those disks were history. But I found them
  6173. a few minutes later...inserted in the crack *above* the floppy drive and
  6174. the case! ALL FOUR OF THEM! Sometimes she's a real peach...sheesh.
  6175. Ciao for now...John
  6176. ---------------
  6177. ** Current thread: PASSING PARMS
  6178.  
  6179. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARQ2298 Date: 06/22/89
  6180. From: JOHN ABATTE                                           Time: 09:38 pm
  6181.   To: ROBERT BALSOVER (Rcvd)                                (Read 113 times)
  6182. Subj: R: PASSING PARMS
  6183.  
  6184. As a matter of fact our instructor for the course is pretty laid back when
  6185. it comes to "formalities" like comments. His *only* requirement is that
  6186. the code be readable. (Just had thought, <grin> about uploading one of the
  6187. files from the confuscated collection. That'd really make his day! Can't
  6188. recollect offhand the name of the file though).
  6189. Yep, my short-lived programming experience in college was due to the
  6190. awkwardness of using the system, as well as having it go down while
  6191. inputting code...5 seconds before you were ready to save it. Had the
  6192. hardware benn available then that we have now I may have stuck with it.
  6193. You can teach old dogs new tricks, just have to hit 'em over the head more
  6194. often to make them remember.
  6195. Ciao for now...John
  6196. ---------------
  6197. ** Current thread: PASSING PARMS
  6198.  
  6199. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARR0682 Date: 06/22/89
  6200. From: PATRICK LEMIRANDE                                     Time: 10:11 pm
  6201.   To: JOHN ABATTE (Rcvd)                                    (Read 111 times)
  6202. Subj: R: PASSING PARMS
  6203.  
  6204. John,
  6205. RE: inserted in the crack above the floppy drive and case.
  6206.  
  6207.      You too.  I lost a disk for at least six months up there.  Then one
  6208. day I removed the case and saw it.
  6209.  
  6210. RE: Instructor availability.
  6211.  
  6212.      This has never been a problem.  I jump on my assignments as soon as I
  6213. get them.  If I have a question I get on the phone and call.  When you
  6214. invest what I do into a class, the phone call is spare change.
  6215.  
  6216.      Mostly I like to go it on my own.  I love to find bugs.  If someone
  6217. has a bug that no one else could find, I have to take my shot at it.
  6218.  
  6219.      Actually, for the most part, the teacher gives out most of the code
  6220. and all we have to do is put it together.  This is quickly done on the PC
  6221. with the multi window word processors of today.  A drastic change from the
  6222. days of punching cards from notes, then waiting the next day to see if it
  6223. ran.
  6224.  
  6225. RE: power down.
  6226.  
  6227.      Yesterday I was looking at one of my C functions to see why it was
  6228. not declared.  I had the compiler set up on a ram drive for speed, the
  6229. word processor editing my code, notes, program examples, and
  6230. instructions.  When Jake pulled the lever I first counted to ten, then
  6231. left the computer alone.
  6232.  
  6233. Patrick
  6234. ---------------
  6235. ** Current thread: PASSING PARMS
  6236.  
  6237. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARR1604 Date: 06/22/89
  6238. From: ROBERT BALSOVER                                       Time: 10:26 pm
  6239.   To: JOHN ABATTE (Rcvd)                                    (Read 113 times)
  6240. Subj: R: PASSING PARMS
  6241.  
  6242. I wish my TA's were as relaxed when it came to comments.  They thought
  6243. that if we were used to excessive comments while in school, we would
  6244. put enough in our work after graduation.
  6245. I purchased a Atari 800XL to use as a terminal to prevent it from
  6246. going down before I saved anything, it happened often before that.
  6247. At least that way if they went down, I could attempt to upload it
  6248. later because it was on my little computers disk drive.
  6249. Clever statement about dogs, I never heard that before.
  6250. Later...
  6251. Bob
  6252. ---------------
  6253. ** Current thread: PASSING PARMS
  6254.  
  6255. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATI0316 Date: 06/24/89
  6256. From: JOHN ABATTE                                           Time: 02:05 pm
  6257.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 108 times)
  6258. Subj: R: PASSING PARMS
  6259.  
  6260. Oof! I bet that hurt. I used to take the time to lock the keyboard if I
  6261. left the machine running so that my daughter wouldn't play with it and
  6262. ruin any of my work. Since she discovered the nuke button I don't bother
  6263. anymore. Just save my work and exit any active programs.
  6264. Our instructor for the C course doesn't give us the code and ask us to put
  6265. it together. He simply tells us what the program should do and leaves us
  6266. to our own devices to come up with a working program. Makes it *really*
  6267. interesting trying to figure it out in a 2 week period. I just finished my
  6268. first assignment and uploaded it to the school today. A whole day ahead of
  6269. schedule! Bad thing about taking a summer class is that it's only 10 weeks
  6270. long vs. 16 for a regular semester. So this is sort of a crash course in C
  6271. programming. Whew!
  6272. Ciao for now...John
  6273. ---------------
  6274. ** Current thread: PASSING PARMS
  6275.  
  6276. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATI0530 Date: 06/24/89
  6277. From: JOHN ABATTE                                           Time: 02:08 pm
  6278.   To: ROBERT BALSOVER (Rcvd)                                (Read 110 times)
  6279. Subj: R: PASSING PARMS
  6280.  
  6281. I made it a point to comment the h**l out of the code even when it was
  6282. obvious what was happening. Sure can't hurt to be generous on that.
  6283. That comment about the dogs I just pulled off the top of my head. That's
  6284. why you never heard it before.
  6285. Ciao for now...John
  6286. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  6287.  
  6288. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMC2599 Date: 06/18/89
  6289. From: GREG KOCHANIAK                                        Time: 08:43 am
  6290.   To: ALL                                                   (Read 120 times)
  6291. Subj: MICROSOFT C V. 6.0
  6292.  
  6293. The following message on next version of Microsoft C I've found on
  6294. BIX. Let me know, if you find something more.
  6295.                        Greg
  6296.  
  6297. microsoft/msc #1748, from phystad, 978 chars, Sun May 14 00:16:34 1989
  6298. --------------------------
  6299. TITLE: MSC V6.0 *news*
  6300.  
  6301. My most recent edition of PCWeek magazine had a good review of MSC V6.0.
  6302.  
  6303. Basically --
  6304.  
  6305.         --- it will include a programmers workbench which is an
  6306.             open architecture environment allowing C programmers
  6307.             access to both Microsoft and third-party vendors.
  6308.         --- it will include a Microsoft C Advisor which is an
  6309.      extensive Hypertext like help system.
  6310.  
  6311. Also, it seems that they have fully integrated QC2.0 into the
  6312. MSC V6.0 product in such a way that QC2.0 is no longer
  6313. a separate entity.  They have done this by using the best
  6314. features of QC2.0 in putting together MSC C6.0.
  6315.  
  6316. Also, some extensive improvements in optimization, include
  6317. global optimization.  MSC V6.0 will also support the tiny
  6318. model for creating .COM files.  Back on the programmers work
  6319. bench, it is designed to give programmers easy access to their
  6320. favorite editor, debugger, and other utilities.
  6321.  
  6322. MSC V6.0 could be formally announced by Microsoft as early as
  6323. next month (June).
  6324. ---------------
  6325. Following thread
  6326.  
  6327. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AMG0883 Date: 06/18/89
  6328. From: ROBERT BALSOVER                                       Time: 12:14 pm
  6329.   To: GREG KOCHANIAK (Rcvd)                                 (Read 118 times)
  6330. Subj: R: MICROSOFT C V. 6.0
  6331.  
  6332. That should give Borland heartburn!  I wonder how Borland and the other
  6333. vendors will react to this improvment?
  6334. I will keep an eye out also.
  6335. ---------------
  6336. ** Current thread: MICROSOFT C V. 6.0
  6337.  
  6338. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANB2847 Date: 06/19/89
  6339. From: GREG KOCHANIAK                                        Time: 07:47 am
  6340.   To: ROBERT BALSOVER (Rcvd)                                (Read 118 times)
  6341. Subj: R: MICROSOFT C V. 6.0
  6342.  
  6343. Yes, I wonder too. I've seen some earlier speculations on MSC 6.0 also,
  6344. there was some roumor that it will be a C++ compliler, some poeple even
  6345. wondered if it will support native 386 code. I'd like both, but it seems
  6346. to be unlikely.
  6347.                        Greg
  6348. ---------------
  6349. ** Current thread: MICROSOFT C V. 6.0
  6350.  
  6351. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANN3591 Date: 06/19/89
  6352. From: ROBERT BALSOVER                                       Time: 07:59 pm
  6353.   To: GREG KOCHANIAK (Rcvd)                                 (Read 116 times)
  6354. Subj: R: MICROSOFT C V. 6.0
  6355.  
  6356. I thought it already supported '386 native code.  Rumor has it that
  6357. TC 2.5 is in the last stages of beta now, I'm betting it's OOPs too!
  6358. It would seem logical that Microsoft wouldn't want to be out done
  6359. on this. I wonder if they'll release a updated version of CodeView
  6360. with it? The press has been pretty sliging mud at it since Turbo Debugger
  6361. came out. Anyway, a MSC++ would make coding OS/2(3?) and MS Windows
  6362. alot easier.
  6363. Bob
  6364. ---------------
  6365. ** Current thread: MICROSOFT C V. 6.0
  6366.  
  6367. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APE0425 Date: 06/20/89
  6368. From: GREG KOCHANIAK                                        Time: 10:07 am
  6369.   To: ROBERT BALSOVER (Rcvd)                                (Read 119 times)
  6370. Subj: R: MICROSOFT C V. 6.0
  6371.  
  6372. It's a good news about TC 2.5. I have both MSC 5.1 and TC 2.0 with
  6373. Turbo Debugger. So far found MSC working better for me, but of course I
  6374. use Borland's debugger. If TC goes OOPs, then Microsoft probably will go
  6375. too, as they did with Quick Pascal after TP 5.5. Havent heard yet
  6376. anything about CodeView, but since my programs are VERY big, remote and 386
  6377. virtual debugging are the must for me. Thanks again for news on TC, Bob!
  6378. Greg
  6379. ---------------
  6380. ** Current thread: MICROSOFT C V. 6.0
  6381.  
  6382. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APL1016 Date: 06/20/89
  6383. From: GRANT ELLSWORTH (Leader)                              Time: 05:16 pm
  6384.   To: ROBERT BALSOVER (Rcvd)                                (Read 118 times)
  6385. Subj: R: MICROSOFT C V. 6.0
  6386.  
  6387. I should note that Borland has already put its foot in OOPS .. There is
  6388. now Turbo Pascal 5.5 which is an OOPS processor.  This should give them
  6389. a head start on coming out with a C OOPS varient.  Big thing Borland lacks
  6390. right now is OS/2 support for its language products.
  6391. ---------------
  6392. ** Current thread: MICROSOFT C V. 6.0
  6393.  
  6394. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APL2345 Date: 06/20/89
  6395. From: GRANT ELLSWORTH (Leader)                              Time: 05:39 pm
  6396.   To: GREG KOCHANIAK (Rcvd)                                 (Read 118 times)
  6397. Subj: R: MICROSOFT C V. 6.0
  6398.  
  6399. Greg, What's this news about TC2.5?  I haven't seen any comments on this
  6400. at all.  Can you elaborate?  Grant
  6401. ---------------
  6402. ** Current thread: MICROSOFT C V. 6.0
  6403.  
  6404. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQ10278 Date: 06/21/89
  6405. From: ROBERT BALSOVER                                       Time: 01:04 am
  6406.   To: GREG KOCHANIAK (Rcvd)                                 (Read 118 times)
  6407. Subj: R: MICROSOFT C V. 6.0
  6408.  
  6409. Greg,
  6410. I didn't know Turbo Debugger could read the info in a MSC file, can it?
  6411. I'd think that the next version of codeview would have all of TD's
  6412. 386 features when it is released.
  6413. Bob
  6414. ---------------
  6415. ** Current thread: MICROSOFT C V. 6.0
  6416.  
  6417. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQ10824 Date: 06/21/89
  6418. From: ROBERT BALSOVER                                       Time: 01:13 am
  6419.   To: GRANT ELLSWORTH (Rcvd)                                (Read 117 times)
  6420. Subj: R: MICROSOFT C V. 6.0
  6421.  
  6422. I don't think OS/2 support is required right now.  I won't be interested
  6423. in it until OS/3 ('386) comes out.  I've heard nothing good about OS/2.
  6424. I haven't tried it because I didn't need to.  The requirements for OS/2
  6425. P resentation Manager to be useful is raw speed, we're talking screeming.
  6426. I've used Excel and its a dog in anything less.  Most people don't
  6427. own screamers and untill they do MSDOS will be the requirement in my
  6428. mind, OS/2 a toy.  That of course is just my opinion.  Memory is
  6429. not that cheap yet either, but thats congress' fault not Microsofts.
  6430. Bob
  6431. ---------------
  6432. ** Current thread: MICROSOFT C V. 6.0
  6433.  
  6434. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQC1557 Date: 06/21/89
  6435. From: GREG KOCHANIAK                                        Time: 08:25 am
  6436.   To: ROBERT BALSOVER (Rcvd)                                (Read 115 times)
  6437. Subj: R: MICROSOFT C V. 6.0
  6438.  
  6439. Yes, it can read MSC file compiled for CodeView. You have the
  6440. TDCONVRT.EXE utility in TC 2.0 Proffesional, which converts CV debugging
  6441. information in your .EXE file to Turbo Debugger format. The original
  6442. version of TDCONVRT has some bugs, but I've downloaded corrected
  6443. version some time ago from CI$.
  6444. Grant Ellsworth asks me about more information of possible TC 2.5. Do you
  6445. have anything more?
  6446.                            Greg
  6447. ---------------
  6448. ** Current thread: MICROSOFT C V. 6.0
  6449.  
  6450. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQC1847 Date: 06/21/89
  6451. From: GREG KOCHANIAK                                        Time: 08:30 am
  6452.   To: GRANT ELLSWORTH (Rcvd)                                (Read 113 times)
  6453. Subj: R: MICROSOFT C V. 6.0
  6454.  
  6455. Grant,
  6456. All I know is from Bob Balsover message: "rumor says"... I am rather more
  6457. interested in MSC. Maybe this rumor is simply an extrapolation:
  6458. TP 5.0  --> TP 5.5 OOPs   =  TC 2.0 --> TC 2.5 OOPs     ?????
  6459.                          Greg
  6460. ---------------
  6461. ** Current thread: MICROSOFT C V. 6.0
  6462.  
  6463. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQM2689 Date: 06/21/89
  6464. From: ROBERT BALSOVER                                       Time: 06:44 pm
  6465.   To: GREG KOCHANIAK (Rcvd)                                 (Read 115 times)
  6466. Subj: R: MICROSOFT C V. 6.0
  6467.  
  6468. I've heard nothing else about TC 2.5, and thats just grapevine anyway.
  6469. I'd forgotten about TDCONVRT, I don't use MSC so I never used TDCONVRT.
  6470. Bob
  6471. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  6472.  
  6473. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AND1071 Date: 06/19/89
  6474. From: GEORGE KOFMAN                                         Time: 09:17 am
  6475.   To: ALL                                                   (Read 120 times)
  6476. Subj: C PROGRAMMER
  6477.  
  6478. A friend is looking for a 'C' programmer to do a project, which may turn
  6479. into a long-term project/job (>1 yr.)
  6480.  
  6481. All interested parties can either upload their resumes to me (in PRIVATE)
  6482. or send them to:
  6483. S.D.G
  6484. 2410 Springdale Road, #111
  6485. Waukesha, WI 53186-2709
  6486.  
  6487. Thanks.
  6488. Geo.
  6489. ---------------
  6490. Following thread
  6491.  
  6492. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARG3443 Date: 06/22/89
  6493. From: GEORGE KOFMAN                                         Time: 12:57 pm
  6494.   To: ALL                                                   (Read 120 times)
  6495. Subj: C PROGRAMMER
  6496.  
  6497. * WANTED * WANTED * WANTED * WANTED * WANTED * WANTED *
  6498.  
  6499. Are you a 'C' programmer? Program in MS-C 5.xx? Looking for work?
  6500.  
  6501. If you answered Yes to the three questions above, please contact me on
  6502. this board or call (414) 549-5043 for details.
  6503.  
  6504. Thanks.
  6505. George M. Kofman
  6506. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  6507.  
  6508. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANK1973 Date: 06/19/89
  6509. From: PATRICK LEMIRANDE                                     Time: 04:32 pm
  6510.   To: ALL                                                   (Read 117 times)
  6511. Subj: C THE SUMMER GO BY
  6512.  
  6513. Message CC'd to:
  6514.      ALL
  6515.      GRANT ELLSWORTH
  6516.  
  6517. RE: I am joining this conference.
  6518.  
  6519.      Hi all.  I am joining this confernece in support of my plans to
  6520. learn the C language this summer.
  6521.  
  6522.      I am reading the (very clear) tutor from this BBS: TUR-C-TU.ZIP.
  6523. My compiler is the small Lets C Compiler.
  6524.  
  6525. I have two questions:
  6526. 1) What will be the limitations of the Lets C compiler over the other more
  6527. popular compilers.
  6528.  
  6529. 2) I plan to first write the main menu for a program that will have one
  6530.    main box with six options.  When I pick one of those options I want to
  6531. make a smaller box with the sub options.  Then, when selected, a smaller
  6532. box for the possible finale needed information.
  6533.  
  6534.      How do I position the cursor on the screen?  Does anyone have
  6535. suggestions on how to best code this, or know of some good examples I can
  6536. look at??
  6537.  
  6538. Patrick
  6539. ---------------
  6540. Following thread
  6541.  
  6542. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANR2300 Date: 06/19/89
  6543. From: GRANT ELLSWORTH (Leader)                              Time: 10:38 pm
  6544.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 110 times)
  6545. Subj: R: C THE SUMMER GO BY
  6546.  
  6547. Patrick, Let's C may be as good an inexpensive learning tool as you can
  6548. find --- only the MIX-C compiler may be competetive for that purpose.
  6549.  
  6550. On WINDOWS, MENUs, BOXES, and Cursor positioning ...
  6551.  
  6552. many compilers have psuedo-graphics functions in their libs.  I don't know
  6553. what is in the Let's C set, but many compilers have a gotoxy() type of
  6554. function which will position the cursor on the screen.
  6555.  
  6556. Some even have a text-windows/boxes set of utility subroutines.
  6557.  
  6558. In the Mahoney collection, I once found a file of several C source code
  6559. routines for windows, boxes, menues, etc..   I think it was C_WINDOW.
  6560. Try a HyperText scan in the mahoney collection for the term "WINDOW"
  6561. and see what's there.  Now it may be that these shareware / pd routines
  6562. will not work with Let's C, but they may provide a guide on how to accom-
  6563. plish what you want.
  6564.  
  6565. Also, see the book "The C Toolbox" by William James Hunt for other related
  6566. examples.  It's a "quaility" paperback pubbed by Addison-Wesley.
  6567.  
  6568. Grant
  6569.  
  6570. ps: what previous programming experience or knowledge are you bringing
  6571. to this experiment?  BASIC?  PASCAL?  DBASE? or what?
  6572. ---------------
  6573. ** Current thread: C THE SUMMER GO BY
  6574.  
  6575. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANR2702 Date: 06/19/89
  6576. From: ROBERT BALSOVER                                       Time: 10:45 pm
  6577.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 110 times)
  6578. Subj: R: C THE SUMMER GO BY
  6579.  
  6580. Patrick,
  6581. If you want to do something more generic you might try bios calls, many
  6582. books are available that list all of the interupts and thier functions.
  6583. Also you could try the ANSI.SYS driver, but thats slower than bios calls.
  6584. I only suggest these because I don't know what graphic functions are
  6585. defined in your compilers lib's, they would be the fastest if they exist.
  6586. Bob
  6587. ---------------
  6588. ** Current thread: C THE SUMMER GO BY
  6589.  
  6590. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANS0048 Date: 06/19/89
  6591. From: PATRICK LEMIRANDE                                     Time: 11:00 pm
  6592.   To: GRANT ELLSWORTH (Rcvd)                                (Read 109 times)
  6593. Subj: R: C THE SUMMER GO BY
  6594.  
  6595. Grant,
  6596.  
  6597.      thanks for the hints.
  6598.  
  6599.      I bring experience of programming in PLI COBOL and 370 Assembly.  On
  6600. the PC I have written some Basic code, and can read Assembly if I have all
  6601. day.
  6602.  
  6603.      I like COBOL the best and always have had trouble with PLI (bugs and
  6604. errors).  I seem to do well with Assembly, even though I hate every minute
  6605. of it.
  6606.  
  6607.      I can see that C is a fine language.  I expect to have the same
  6608. experiences as I had with PLI.
  6609.  
  6610.      I plan to start with a rather simple printer control program for my
  6611. Panasonic printer.   The code is very simple and clear in Basic, and even
  6612. assembly, should be about the same in C.  I suppose I will need the STDIO.
  6613. H file included in my program.
  6614.  
  6615.      I read that message left here earlier in the year that defines the
  6616. level of programmer.  After four chapters of the Tutor I cannot meet the
  6617. 'novice' which said:
  6618. Uses #include stdio.h and does not know why.
  6619. Has heard of pointers, and has never seen one.
  6620.  
  6621.      Well, this is the first I have heard of both STDIO.H and pointers.
  6622. Looking forward to the efficiency of both.
  6623.  
  6624.      I like the function calls like:
  6625. A = first(void)
  6626.  
  6627.      Looks like my kind of power coding.  i take that as a procedure
  6628. called 'first' is executed returning a value and placing it in A.
  6629.  
  6630.      Grant, I can do this and still get the grass cut.  (I think)
  6631.  
  6632. Patrick
  6633. ---------------
  6634. ** Current thread: C THE SUMMER GO BY
  6635.  
  6636. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ANS0488 Date: 06/19/89
  6637. From: PATRICK LEMIRANDE                                     Time: 11:08 pm
  6638.   To: ROBERT BALSOVER (Rcvd)                                (Read 108 times)
  6639. Subj: R: C THE SUMMER GO BY
  6640.  
  6641. Bob,
  6642.  
  6643.      yes ANSI.SYS does sound to slow.  I will go for the bios calls.  What
  6644. command are we talking about?  Do I now need the command:
  6645. #include stdio.h  /* declarations for standard I/O.  */
  6646.  
  6647.      Would I use dos.h /* declarations for DOS calls */ if I would use the
  6648. ANSII.SYS driver???
  6649.  
  6650. Patrick
  6651. ---------------
  6652. ** Current thread: C THE SUMMER GO BY
  6653.  
  6654. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APL2033 Date: 06/20/89
  6655. From: GRANT ELLSWORTH (Leader)                              Time: 05:33 pm
  6656.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 115 times)
  6657. Subj: R: C THE SUMMER GO BY
  6658.  
  6659. Patrick, You and I share something of the same background prior to try-
  6660. ing to program in C.  I am a very long time IBM370 ALC programmer.  I've
  6661. also done work in COBOL (practically forgotten) and PL/I (modest and
  6662. farily recent).  C is like a "high level" assembler to me.  I like it for
  6663. that reason (among others).  I've also read a little of IBM's PL/S a
  6664. mixture of ALC and PL/I for opsys construction.  Where we part ways is in
  6665. our views of COBOL.... To me, COBOL is a computerist's 5-letter word for a
  6666. 4-letter expletive.  This may be due to the applications I had to code in
  6667. C***L - mostly text and bit-handling stuff before they added the STRING
  6668. and UNSTRING verbs which make the free-from text handling easier.  THe
  6669. other things C***L lacked (and may still lack) which I need in a
  6670. programming tool are:  parameter passing to "internal" subroutines and
  6671. pointer handling.  I also found C***L's verbosity a bit overwhelming -
  6672. especially when the only media I had for making programs wass the 80
  6673. column punch card ... and had to multi-punch my lower case letters and
  6674. other special characters in already long data definitions statements.
  6675.  
  6676. I hope you enjoy your venture into C programming.  I think you'll find
  6677. your prior programming experience with the assemblers (both 370 and 80x86)
  6678. very helpful.   And I know you'll always find any help you'll need in this
  6679. conference/topic.     Grant
  6680. ---------------
  6681. ** Current thread: C THE SUMMER GO BY
  6682.  
  6683. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2APS0556 Date: 06/20/89
  6684. From: PATRICK LEMIRANDE                                     Time: 11:09 pm
  6685.   To: GRANT ELLSWORTH (Rcvd)                                (Read 112 times)
  6686. Subj: R: C THE SUMMER GO BY
  6687.  
  6688. Grant,
  6689.  
  6690. RE: Programming C***L on an 80 column puch card.
  6691.  
  6692.      That alone clears up your view of C***L.
  6693.  
  6694.      I wrote complex programs in PLI and file/string handling programs in
  6695. C***L.   I experienced writing C***L code, compiling it without errors,
  6696. and getting what I wanted when it ran.
  6697.  
  6698.      I don't think I have ever done the with PLI!  In fact,  I earned my
  6699. debugging skills using PLI.
  6700.  
  6701.      Another thing different in my experience with C***L is that I write
  6702. my code on a PC editor, using the 85 standard, and upload it to a VAX,
  6703. (using a Procomm script), while I go the the refridgerator.
  6704.  
  6705.      When I return, I have either compiler errors on the printer, or the
  6706. printout on my hard disk.
  6707.  
  6708.      It's sad, but I never go to use that 80 column card punch.
  6709.  
  6710. Patrick
  6711. ---------------
  6712. ** Current thread: C THE SUMMER GO BY
  6713.  
  6714. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQ10107 Date: 06/21/89
  6715. From: ROBERT BALSOVER                                       Time: 01:01 am
  6716.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 117 times)
  6717. Subj: R: C THE SUMMER GO BY
  6718.  
  6719. Patrick,
  6720. I don't think your compiler would place the format of a interupt call
  6721. in stdio.h, that file is for file i/o using FILE * .  You'll have to
  6722. look for the function that does the low level interupt calls.  In
  6723. Turbo C there are a couple.  One is int86().  The commands I'm talking
  6724. about have nothing to do with C.  These commands are parms passed to
  6725. the bios of your computer, in the registers.  A example in assembly
  6726. language would be:
  6727.       mov  ah,02H
  6728.       mov  bh,00h
  6729.       mov  dh,01H
  6730.       mov  dl,05H
  6731.       int  10H
  6732. the 2 in ah is the command to move the cursor to a position
  6733. the 0 in bh is the page number on your video adaptor
  6734. the 1 in dh is row you want the cursor to go to
  6735. the 5 in dl is the column you want the cursor at
  6736. int 10H is the interupt call, int #10H is the interupt that handles
  6737. screen functions. Numbers followed by a h are in base 16 (Hexadecimal)
  6738. These type of calls are machine specific and you can't expect them
  6739. to work on anything but MSDOS compatible setups.
  6740. A good book that lists all of the bios calls is:
  6741. Advanced MSDOS Programming by Ray Duncan Microsoft Press.
  6742. Look for a function in your compiler that will make bios calls
  6743. so you don't have to use a assembler.
  6744. 'Hope That Helps.
  6745. Bob
  6746. ---------------
  6747. ** Current thread: C THE SUMMER GO BY
  6748.  
  6749. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQC3199 Date: 06/21/89
  6750. From: PATRICK LEMIRANDE                                     Time: 08:53 am
  6751.   To: ROBERT BALSOVER (Rcvd)                                (Read 114 times)
  6752. Subj: R: C THE SUMMER GO BY
  6753.  
  6754. Robert,
  6755.  
  6756. RE: positioning the cursor whith interupt 10.
  6757.  
  6758.      Yes that helps, and I am familiar with the code.
  6759.  
  6760.      C seems to be closer to assembly than I expected.  I can write a
  6761. procedure to do that and send it two variables or so.
  6762.  
  6763.      Looks like I have a Intcall that works with the full registers DX and
  6764. BX.   That must not be the right one.
  6765.  
  6766.      I suppose I will have to clear the scren with assembly too.
  6767.  
  6768. Patrick
  6769. ---------------
  6770. ** Current thread: C THE SUMMER GO BY
  6771.  
  6772. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQE1103 Date: 06/21/89
  6773. From: GRANT ELLSWORTH (Leader)                              Time: 10:18 am
  6774.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 114 times)
  6775. Subj: R: C THE SUMMER GO BY
  6776.  
  6777. Patrick, Using PC to edit, followed by uploads to VAX is certainly an
  6778. excellent way to get the job done.  I did a little work some years back
  6779. (82-83) with VAX C***L - 74.  Wasn't real bad, just made me a little ill.a
  6780.  
  6781. On PL/I, I can sympathize.  My staff at about that time was using a PL/I
  6782. compiler on the VAX and was getting real frustrated with the fickle nature
  6783. of that compiler.  I have found the IBM370 PL/I compiler equally fickle
  6784. and more prone to honest to goodness compiler bugs ... ONe of my staffers
  6785. stumbled into one that put the compiler in a $5K tight loop - ugly.  I
  6786. helped find and workaround the compiler bug, but it was real grief
  6787. inducing.
  6788.  
  6789. As to punch cards and C***L ... on your knees and give highest thanks to
  6790. the almighty that you were NEVER subjected to that torture .....
  6791.  
  6792. Grant
  6793. ---------------
  6794. ** Current thread: C THE SUMMER GO BY
  6795.  
  6796. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQI3022 Date: 06/21/89
  6797. From: PATRICK LEMIRANDE                                     Time: 02:50 pm
  6798.   To: GRANT ELLSWORTH (Rcvd)                                (Read 112 times)
  6799. Subj: R: C THE SUMMER GO BY
  6800.  
  6801. Grant,
  6802.  
  6803. RE: Never subjected to that torture....
  6804.  
  6805.      Did you ever drop a pack of cards???
  6806.  
  6807. Patrick
  6808. ---------------
  6809. ** Current thread: C THE SUMMER GO BY
  6810.  
  6811. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQL1820 Date: 06/21/89
  6812. From: GRANT ELLSWORTH (Leader)                              Time: 05:30 pm
  6813.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 116 times)
  6814. Subj: R: C THE SUMMER GO BY
  6815.  
  6816. >Did you ever drop a pack of cards .....
  6817.  
  6818. I've got 2 quick stories for you ....
  6819.  
  6820. 1. I had a 2 tray (400K++ cards) C***L BNF syntax decoder pseudo-compiler
  6821.    ... maybe above card count is a little low ....
  6822.  
  6823.    There were so many changes and insertions in what was a small area of
  6824.   the program that I had to mix alpha and numbs to get anything like
  6825.    sequence numbers in case there was scrambled eggs ... and there were,
  6826.    or course some blank sequence numbers due to "quick fixes" all over
  6827.    the place ....
  6828.  
  6829.    I'll never forget what little I will ever remember of it ... the night
  6830.    I was standing in the Computer Room watching a big-handed over-confi-
  6831.    dent computer operator pick up a whole tray of cards (2K++) - hands
  6832.    pinching it at both ends to load on the 2540 card reader --- he put it
  6833.    in upside down , of course. .. then he puts one hand on top of big
  6834.    stack, other on bottom, and attempts to turn it right side up ...
  6835.    about the time the long stack is horizontal to the floor ,,,it goes
  6836.    splatter as operator's hands come together like an accordian player's
  6837.   .... at the moment the 1st batch of cards hit the floor, I literally
  6838.    saw red ... and remember nothing until the red cleared from my eyes
  6839.    and 3 co-workers and boss were restraining me trying to get me loose
  6840.    from the poor operator's neck, i think it was.   By the time I was
  6841.    wrestled to the floor amidst all those cards, my vision cleared up
  6842.    and I calmed way down .... and proceded with the onerous task of
  6843.    reconstructing the mess ... this mess was compounded by the fact that
  6844.    during the "red" period, the OTHER tray go knocked off the card reader
  6845.    and it, too, spewed its contents all over the floor ... I have no
  6846.    memory of how that happened
  6847.  
  6848.    Anyway, it took the better part of that night to reconstruct the
  6849.    program deck and re-punch/reposition the blank seq numbers ... Thanks
  6850.    to the presence of a card sorter, the job was not as bad as it could
  6851.    have been
  6852.  
  6853. 2. As if scrambled eggs source code (as above) was not bad enough, I
  6854.    also had a similar mishap with 4 boxes of object decks .....
  6855.  
  6856.    I did this one to myself ... tried to navigate a particlarly narrow
  6857.    doorway carrying these 4 boxes of object into a waiting area ...
  6858.    These were also as mess to get straightened out ... I finally had
  6859.    to recompile some of the programs to get the object decks === as 3
  6860.    of the scrambled decks had the same 1st 3 or 4 chars identifying them
  6861.    in the sequence numbers .....
  6862.  
  6863. So, did I ever drop a deck of cards?  I think I've seen enough dropped
  6864. to keep a Las Vegas card shark busy for days ... And if I never never
  6865. never see, deal with, handle a punch-card again (except as a nostalgic
  6866. trip thru a museum), it will be much much too soon.
  6867.  
  6868. Grant
  6869. ---------------
  6870. ** Current thread: C THE SUMMER GO BY
  6871.  
  6872. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQM3193 Date: 06/21/89
  6873. From: ROBERT BALSOVER                                       Time: 06:53 pm
  6874.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 116 times)
  6875. Subj: R: C THE SUMMER GO BY
  6876.  
  6877. Patrick,
  6878. You can use Intcall with these video functions, it is the right function.
  6879. Combine dh and dl and you have DX. So, if dh was 05h and dl was 01h then
  6880. DX would be 0501H or if this is a C function the proper syntax is:
  6881. 0x0501. The 0x prefix is C for hexadecimal.  What I wrote in my last
  6882. message is Assembly code not C, but C can be very close to Assembly.
  6883. That's what I like about C.  Yes the is a way to clear the screen with
  6884. this method.  I don't remember the function number, but you just scroll
  6885. the screen.  Are you sure your library doesn't have some video functions.
  6886. These methods are OK but direct screen writing is much better.
  6887. Bob
  6888. ---------------
  6889. ** Current thread: C THE SUMMER GO BY
  6890.  
  6891. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQS0592 Date: 06/21/89
  6892. From: PATRICK LEMIRANDE                                     Time: 11:09 pm
  6893.   To: GRANT ELLSWORTH (Rcvd)                                (Read 114 times)
  6894. Subj: R: C THE SUMMER GO BY
  6895.  
  6896. Grant,
  6897.  
  6898. RE: So, did I ever drop a deck of cards?
  6899.  
  6900.      Somehow I knew you would come up with a good story.
  6901.  
  6902. Patrick
  6903. ---------------
  6904. ** Current thread: C THE SUMMER GO BY
  6905.  
  6906. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AQS1054 Date: 06/21/89
  6907. From: PATRICK LEMIRANDE                                     Time: 11:17 pm
  6908.   To: ROBERT BALSOVER (Rcvd)                                (Read 111 times)
  6909. Subj: R: C THE SUMMER GO BY
  6910.  
  6911. Robert,
  6912.  
  6913.      thanks.  I can clear the screen with the info you gave me.  I know
  6914. the assembly code to clear it, so I will just plug in the right values.
  6915.  
  6916.      Believe me, I will keep in touch.
  6917.  
  6918. Patrick
  6919. ---------------
  6920. ** Current thread: C THE SUMMER GO BY
  6921.  
  6922. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARR1169 Date: 06/22/89
  6923. From: ROBERT BALSOVER                                       Time: 10:19 pm
  6924.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 113 times)
  6925. Subj: R: C THE SUMMER GO BY
  6926.  
  6927. Patrick,
  6928. Are you sure your compiler doesn't have screen routines?
  6929. Bob
  6930. ---------------
  6931. ** Current thread: C THE SUMMER GO BY
  6932.  
  6933. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASE0119 Date: 06/23/89
  6934. From: PATRICK LEMIRANDE                                     Time: 10:01 am
  6935.   To: ROBERT BALSOVER (Rcvd)                                (Read 116 times)
  6936. Subj: R: C THE SUMMER GO BY
  6937.  
  6938. Robert,
  6939.  
  6940.      if my compiler has screen routines, then I have not found them yet.
  6941. I also don't know how to do the assembly code: 'CALL     CLEAR'  in C, or
  6942. what that line means.
  6943.  
  6944.      I am using the Printf function for now.  So far I have read seven of
  6945. fourteen chapters of the tutor.  Printf has been used exclusively.
  6946. So how do most C programmers write to the screen.
  6947.  
  6948. Patrick
  6949. ---------------
  6950. ** Current thread: C THE SUMMER GO BY
  6951.  
  6952. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASL1820 Date: 06/23/89
  6953. From: GRANT ELLSWORTH (Leader)                              Time: 05:30 pm
  6954.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 112 times)
  6955. Subj: R: C THE SUMMER GO BY
  6956.  
  6957. Patrick, just a clue ... does your compiler/lib have a "clrscr()" or a
  6958. "xxx_clrscr()" function (xxx = DOS, or other classification pfx)?  Grant
  6959. ---------------
  6960. ** Current thread: C THE SUMMER GO BY
  6961.  
  6962. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASN1972 Date: 06/23/89
  6963. From: JOE VINCENT                                           Time: 07:32 pm
  6964.   To: GRANT ELLSWORTH (Rcvd)                                (Read 111 times)
  6965. Subj: R: C THE SUMMER GO BY
  6966.  
  6967. Grant, the last time I worked with COBOL, it even had rudimentary pointers
  6968. (actually, fancy subscripts) manipulated by a SET command.  I particularly
  6969. enjoyed the STRING and UNSTRING verbs, which you also mentioned.  I did
  6970. some work in the late 1970s decomposing telecommunications streams using
  6971. COBOL and the UNSTRING was a blessing.
  6972.  
  6973. I don't have the visceral reaction to COBOL that many people seem to have,
  6974. most of whom have never written a line of COBOL and wouldn't know the
  6975. language if they fell over it.  I used to tell the various language bigots
  6976. who worked for me (one of whom thought FOCUS was God's gift to the
  6977. computing community) that "we have more than one arrow in our quiver."  My
  6978. point was that no single language is best for every purpose, so we, as
  6979. professionals, should be multi-lingual and prepared to select the best
  6980. language for the purpose.  I wouldn't want a tool box with nothing in it
  6981. except a pair of pliers, but "to the man whose only tool is a hammer, all
  6982. things require hammering."
  6983.  
  6984. Speaking of C, I read that MS is already beginning to talk about an
  6985. early-to-midyear 1990 release for MSC 7.0!  And the hits just keep on
  6986. comin'!
  6987.  
  6988.      -=≡{JOE}≡=- (tm)
  6989. ---------------
  6990. ** Current thread: C THE SUMMER GO BY
  6991.  
  6992. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASN2146 Date: 06/23/89
  6993. From: JOE VINCENT                                           Time: 07:35 pm
  6994.   To: GRANT ELLSWORTH (Rcvd)                                (Read 108 times)
  6995. Subj: R: C THE SUMMER GO BY
  6996.  
  6997. I once watched a young enlisted man drop two boxes of cards containing a
  6998. program that he had not sequence-numbered.  I don't know whether he ever
  6999. got it back into the correct order.
  7000.  
  7001.      -=≡{JOE}≡=- (tm)
  7002. ---------------
  7003. ** Current thread: C THE SUMMER GO BY
  7004.  
  7005. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASP0150 Date: 06/23/89
  7006. From: GRANT ELLSWORTH (Leader)                              Time: 08:02 pm
  7007.   To: JOE VINCENT (Rcvd)                                    (Read 111 times)
  7008. Subj: R: C THE SUMMER GO BY
  7009.  
  7010. Joe, ... you were FORTUNATE to be using C***L in the days after some of
  7011. those useful verbs were added.  And I never heard/read of the "SET" verb
  7012. which allows some rudimentary ptr definitions.  THe only thing I ever saw
  7013. or used with C***L which had ANYTHING to do with pointers was the VAX/VMS
  7014. "call by descriptor" facility which would include a pointer-to, length of,
  7015. and type-of, for the data entity so referenced.  This was very much like
  7016. the PL/I "SLD" generated by the IBM 370 Compiler.  I found C***L too darn
  7017. verbose: 0n my_LONG_NAME PICTURE S9(9) COMPUTATIONAL VALUE 3141459. - now
  7018. becomes (I think) 0n MY_STILL_TOO_LONG_NAME PIC S9(9) COMP VAL 3141459.
  7019. but, in C:  long my_LONG_NAME = 3141459; /* which is not quite so verbose
  7020. */
  7021.  
  7022. Does the language now support passing parameters to internal sub-routines
  7023. - e.g.: perform paragraph_2043 using data1 data2 data3.   ?????
  7024.  
  7025. (I'm getting mellow - did NOT put word language in quotes)
  7026.  
  7027. On multi-lingual .... you and I agree ... and I'd like to extend that fine
  7028. concept / expression  to include "multi-architectural" and
  7029. "multi-opreating systems"!!!   You are right on the money -- no one
  7030. language is good for all application or system problems.
  7031.  
  7032. I've seen a little FOCUS - and I agree (in part) with your staff ... it IS
  7033. God's gift --- to the C***L application developer, anyway.
  7034.  
  7035. Now, FOCUS feeds idea into CASE .... and OOPS ....
  7036.  
  7037. Grant
  7038. ---------------
  7039. ** Current thread: C THE SUMMER GO BY
  7040.  
  7041. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASR3258 Date: 06/23/89
  7042. From: PATRICK LEMIRANDE                                     Time: 10:54 pm
  7043.   To: GRANT ELLSWORTH (Rcvd)                                (Read 108 times)
  7044. Subj: R: C THE SUMMER GO BY
  7045.  
  7046. Grant,
  7047. RE: clrscr()
  7048.  
  7049.      no, none that I can see.  I suppose I will have to make one>
  7050.  
  7051. Patrick
  7052. ---------------
  7053. ** Current thread: C THE SUMMER GO BY
  7054.  
  7055. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AT10530 Date: 06/24/89
  7056. From: ROBERT BALSOVER                                       Time: 01:08 am
  7057.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 112 times)
  7058. Subj: R: C THE SUMMER GO BY
  7059.  
  7060. Patrick,
  7061. I believe that call clear is just a function call.  What is 'CLEAR'
  7062. anyway?  If this a C function you would just:
  7063. clear();
  7064. If this is a Pascal or Assembly Language function you would first:
  7065. pascal clear(void);   /* do a prototype    */
  7066. then later in your file:
  7067. clear();
  7068. remember that C functions have a underscore prefix, but you don't
  7069. include that in your C code, the compiler does it for you.
  7070. A Pascal or a Assembly function does not have to have the underscore
  7071. prefix but it could.  If it does you must include it in your C code.
  7072. At least thats C according to Borland.
  7073. The function printf is fine, generic.  If you change the cursor's position
  7074. it will print at the new position. You could also do scanf to a string,
  7075. then print it char for char but that would bog things down.
  7076. Bob
  7077. ---------------
  7078. ** Current thread: C THE SUMMER GO BY
  7079.  
  7080. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATG1058 Date: 06/24/89
  7081. From: JOE VINCENT                                           Time: 12:17 pm
  7082.   To: GRANT ELLSWORTH (Rcvd)                                (Read 108 times)
  7083. Subj: R: C THE SUMMER GO BY
  7084.  
  7085. Yep, COBOL is quite verbose.  I wrote my last COBOL program in the late
  7086. 1970s.  But, if I had to do another data stream decomposition, I might
  7087. pick COBOL, although SNOBOL would be a more logical first choice.  It's
  7088. worthwhile just to know what's available and what are the strengths and
  7089. weaknesses of various languages.
  7090.  
  7091. I'm not aware of any parameter-passing capability in COBOL; since all
  7092. variables in COBOL are global (or were as of the last time I used COBOL),
  7093. all parameters are "visible" to PERFORMed sections of code.  The flip side
  7094. of that is that COBOL doesn't allow variables to be local to a portion of
  7095. the code.  My COBOL awareness is dated, so don't take this as gospel.
  7096.  
  7097. I've always maintained that a data processing professional should know at
  7098. least one language/machine/architecture/OS in detail and should know ABOUT
  7099. many.  In this business, when you close your mind and stop learning,
  7100. you're history.  As I told someone at the office this week, in this
  7101. business, this year's "Star Wars" is next year's fait accompli.  A year
  7102. ago, I was telling my boss that we needed to drill deeply into Enterprise
  7103. Systems, SAA, et al, since that would be our platform into the next
  7104. century.  The boss wanted "something practical" ─ action items.  This past
  7105. week, I attended an IBM session on cooperative processing and SAA.  Our
  7106. developers now have gotten religion on the topic and our department is not
  7107. even on the learning curve yet.  So much for action items.
  7108.  
  7109.      -=≡{JOE}≡=- (tm)
  7110. ---------------
  7111. ** Current thread: C THE SUMMER GO BY
  7112.  
  7113. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AVD2018 Date: 06/26/89
  7114. From: PATRICK LEMIRANDE                                     Time: 09:33 am
  7115.   To: ROBERT BALSOVER (Rcvd)                                (Read 105 times)
  7116. Subj: R: C THE SUMMER GO BY
  7117.  
  7118. Robert,
  7119.  
  7120.      CLEAR was a piece of assembly code.  I will list part of it here:
  7121.  
  7122.            EXTRN   CLEAR:FAR           ;CLEAR SCREEN
  7123.  
  7124. CODE       SEGMENT
  7125.            ASSUME  CS:CODE,SS:STACK,ES:DATA
  7126. KEYCODES   PROC    FAR
  7127.            PUSH    DS                  ;PUSH RETURN SEG ADDR ON STACK
  7128.            SUB     AX,AX               ;PUSH RETURN OFFSET OF ZERO
  7129.            PUSH    AX                  ;ON STACK
  7130.            MOV     AX,SEG DATA         ;SET ES-REGISTER TO POINT
  7131.            MOV     ES,AX               ;TO DATA SEGMENT
  7132. ;
  7133. ; set up screen
  7134.            MOV  AH,0            ;set video mode
  7135.            mov  al,3            ;color text mode
  7136.            INT  10H             ;clear screen
  7137.  
  7138.            call    clear               ;clear screen
  7139.            mov     dh,20               ;place cursor at row 18
  7140.            mov     dl,0                ;                colm 0
  7141.            mov     ah,2                ;   sub call for int 10h
  7142.            int     10h                 ;Bios interrupt for cursor motion
  7143.  
  7144.  
  7145.      This is what I was talking about.  I don't understand the CLEAR
  7146. myself??
  7147.  
  7148. Patrick
  7149. ---------------
  7150. ** Current thread: C THE SUMMER GO BY
  7151.  
  7152. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BPQ2918 Date: 07/20/89
  7153. From: ROBERT BALSOVER                                       Time: 09:48 pm
  7154.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 110 times)
  7155. Subj: R: C THE SUMMER GO BY
  7156.  
  7157. Patrick,
  7158. sorry I took so long to reply, my modem died.  could you restate what led
  7159. to this message?
  7160. Bob
  7161. ---------------
  7162. ** Current thread: C THE SUMMER GO BY
  7163.  
  7164. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQ10874 Date: 07/21/89
  7165. From: PATRICK LEMIRANDE                                     Time: 01:14 am
  7166.   To: ROBERT BALSOVER (Rcvd)                                (Read 108 times)
  7167. Subj: R: C THE SUMMER GO BY
  7168.  
  7169. Bob,
  7170.  
  7171.      I am not sure what message you refer to, but it must be about the
  7172. printer.
  7173.  
  7174.      I found out that my code worked, and that I needed to type in a
  7175. character to represent the decimal equivalent of the number I wanted to
  7176. send to the printer.
  7177.  
  7178.      i.e.  to send a '36' I had to use a '$' which is decimal 36.
  7179.  
  7180.      I ended up rewriting the code to convert the decimal number to its
  7181. character equivalent:
  7182.  
  7183. int valin.
  7184. char s[6],x;
  7185.    scanf("%d",&valin);
  7186.    s[0] = '3';
  7187.    if ((valin == 10) || (valin == 26)) valin--;  /* these two need work */
  7188.    if ((valin < 256) && (valin >   0))
  7189.    {
  7190.       x = valin;
  7191.       s[1] = x;
  7192.       s[2] = 0;
  7193.       setprint(s);
  7194.    }
  7195.  
  7196.      That about did it.   I have not tried to set s[1] = valin.   Just
  7197. glad it works.   Next I plan to use structures to make my menu sort of
  7198. dynamic.  Maybe modular is more the term.
  7199.  
  7200. Patrick
  7201. ---------------
  7202. ** Current thread: C THE SUMMER GO BY
  7203.  
  7204. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQR2579 Date: 07/21/89
  7205. From: ROBERT BALSOVER                                       Time: 10:42 pm
  7206.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 108 times)
  7207. Subj: R: C THE SUMMER GO BY
  7208.  
  7209. Patrick,
  7210. I'm afriad that my busted modem has had me out of touch longer than
  7211. that subject.  The message I was refering to was a assembly routine
  7212. that cleared the screen.  Just what are you whipping up anyway?
  7213. Bob
  7214. ---------------
  7215. ** Current thread: C THE SUMMER GO BY
  7216.  
  7217. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRL2807 Date: 07/22/89
  7218. From: PATRICK LEMIRANDE                                     Time: 05:46 pm
  7219.   To: ROBERT BALSOVER (Rcvd)                                (Read 106 times)
  7220. Subj: R: C THE SUMMER GO BY
  7221.  
  7222. Robert,
  7223.  
  7224.      I never figured out how to
  7225.      I never figured out how to run the assembly program to clear the
  7226. screen.
  7227.  
  7228.      Instead, I just sent and ASCII code using printf to clear the screen.
  7229.  
  7230. In fact, I used the ASCII sequences to position the cursor also.  The
  7231. program is 100% DOS compatible and can be run remotely with com software.
  7232.  
  7233.      As I continue to build on this program I will someday read from the
  7234. keyboard and write to video memory.  For now it slowly and cleanly
  7235. achieves my objectives.
  7236.  
  7237. Patrick
  7238. ---------------
  7239. ** Current thread: C THE SUMMER GO BY
  7240.  
  7241. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRM0481 Date: 07/22/89
  7242. From: ROBERT BALSOVER                                       Time: 06:08 pm
  7243.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 108 times)
  7244. Subj: R: C THE SUMMER GO BY
  7245.  
  7246. Patrick,
  7247. I'll write those two routines for you (clear screen, position cursor) as
  7248. a better example of what can be done.  I imagine that if you are using
  7249. printf to do this you have to load ANSI.SYS, right?
  7250. Eats memory.
  7251. Do you have a assembler? There are two ways to do it, 1: int86() and
  7252. inline but inline requires a assembler, int86() doesn't but takes more
  7253. space to do it.  Also what memory model and what C compiler (MS?)?
  7254. Or was it Lets C? (Mark Williams).
  7255. Bob
  7256. ---------------
  7257. ** Current thread: C THE SUMMER GO BY
  7258.  
  7259. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRM1374 Date: 07/22/89
  7260. From: PATRICK LEMIRANDE                                     Time: 06:22 pm
  7261.   To: ROBERT BALSOVER (Rcvd)                                (Read 111 times)
  7262. Subj: R: C THE SUMMER GO BY
  7263.  
  7264. Robert,
  7265.  
  7266.      I always load ANSI.SYS,  I like it.  Does bring up a point of my
  7267. program's compatibility on a machine that does not load it.
  7268.  
  7269.      I have a copy of the IBM Macro Assembler V.20.  I am compiling my C
  7270. code with (yes) the Mark Williams Lets C.  It has done the job so far,
  7271. just in a slow way.  I suspect the only way to speed things up is to get a
  7272. faster computer.
  7273.  
  7274.      I welcome any procedure you write for me to clear the screen and
  7275. position the cursor.  Thanks in advance.  You will also be showing me how
  7276. to include a ASM program within a C program.
  7277.  
  7278.      As for the int86,  I thought that was an option included with the
  7279. Lets C package.   What is it really??
  7280.  
  7281. Patrick
  7282. ---------------
  7283. ** Current thread: C THE SUMMER GO BY
  7284.  
  7285. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRM1899 Date: 07/22/89
  7286. From: ROBERT BALSOVER                                       Time: 06:31 pm
  7287.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 107 times)
  7288. Subj: R: C THE SUMMER GO BY
  7289.  
  7290. Patrick,
  7291. The int86() is just a function that loads the registers with your desired
  7292. values and calls the interupt you specify. It also returns the values
  7293. in the registers following the int86() call, this is how MSDOS and
  7294. your ROM bios tell you it answer to your question.
  7295. If you could, please list the calling parm's your manual lists for
  7296. int86(), also I need the memory model.
  7297. Bob
  7298. ---------------
  7299. ** Current thread: C THE SUMMER GO BY
  7300.  
  7301. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRM2111 Date: 07/22/89
  7302. From: ROBERT BALSOVER                                       Time: 06:35 pm
  7303.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 105 times)
  7304. Subj: R: C THE SUMMER GO BY
  7305.  
  7306. Patrick,
  7307. I need you to look thru your manual for a way to do inline assembly.
  7308. There would be a keyword listed like '#pragma inline' or 'asm'.
  7309. Bob
  7310. ---------------
  7311. ** Current thread: C THE SUMMER GO BY
  7312.  
  7313. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRP1258 Date: 07/22/89
  7314. From: PATRICK LEMIRANDE                                     Time: 08:20 pm
  7315.   To: ROBERT BALSOVER (Rcvd)                                (Read 106 times)
  7316. Subj: R: C THE SUMMER GO BY
  7317.  
  7318. Robert,
  7319. RE: please list the calling parms your manual lists for int86(), and the
  7320.     memory model.
  7321.  
  7322.      looking..............
  7323.  
  7324.      Can someone with a Let's C compiler and knowledge please help me on
  7325. this one.
  7326.  
  7327. Patrick
  7328. ---------------
  7329. ** Current thread: C THE SUMMER GO BY
  7330.  
  7331. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRP2205 Date: 07/22/89
  7332. From: PATRICK LEMIRANDE                                     Time: 08:36 pm
  7333.   To: ROBERT BALSOVER (Rcvd)                                (Read 106 times)
  7334. Subj: R: C THE SUMMER GO BY
  7335.  
  7336. Bob,
  7337.  
  7338. RE: inline assembly
  7339.  
  7340.      looking..........
  7341.  
  7342.      Looks like I don't have that option in my compiler.
  7343.  
  7344. Patrick
  7345. ---------------
  7346. ** Current thread: C THE SUMMER GO BY
  7347.  
  7348. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BSI0929 Date: 07/23/89
  7349. From: ROBERT BALSOVER                                       Time: 02:15 pm
  7350.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 104 times)
  7351. Subj: R: C THE SUMMER GO BY
  7352.  
  7353. Patrick,
  7354. A good place for looking for memory model info is in the index under
  7355. memory models or in the list of compiler command line options.
  7356. Can you find anything in your manual that says you have int86() in
  7357. your compiler library, if not then you probably don't have it.
  7358. We can roll you one.
  7359. In Turbo C, it's int86(int intno, union REGS *inregs, union REGS
  7360. *outregs);
  7361. where REGS is a union of most of the registers.
  7362. You could write a small program that calls int86(), if you get a linker
  7363. error, you dont have that routine.
  7364. Bob
  7365. ---------------
  7366. ** Current thread: C THE SUMMER GO BY
  7367.  
  7368. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BSI1205 Date: 07/23/89
  7369. From: ROBERT BALSOVER                                       Time: 02:20 pm
  7370.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 109 times)
  7371. Subj: R: C THE SUMMER GO BY
  7372.  
  7373. Patrick,
  7374. If you don't have it, thats ok.  We'll just link it in.
  7375. Patrick, I don't live that far from you.  If you are having a difficult
  7376. time deciphering your manual we could coordinate a time where I could
  7377. look at your manual.
  7378. Bob
  7379. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  7380.  
  7381. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ARD0341 Date: 06/22/89
  7382. From: DON BOWEN                                             Time: 09:05 am
  7383.   To: ALL                                                   (Read 117 times)
  7384. Subj: LOADABLE EXTERNAL ROUTINES
  7385.  
  7386. Has anyone out there ever heard of a Quattro Save Translator?  Has anyone
  7387. ever written one?  A QSR was talked about in Turbo Technix (RIP) May/June
  7388. 1988 issue.  What I need is a way to implement the same concept in a
  7389. normal program and I don't want to use the Quattro Developer's Toolkit.
  7390.  
  7391. Because this may not help anyone to understand, let me describe my
  7392. need directly.  I want to be able to write a program which based on how a
  7393. user configures it, will use other separately compiled routines.  Because
  7394. of memory limitations and mostly the clients mandate it is not acceptable
  7395. to try a "linking" solution.  I'd like to be able from within the main
  7396. program, allocate some memory and bring in the user specified routine,
  7397. then call that memory location as needed.  Sorry I'm not explaining this a
  7398. little better.
  7399.  
  7400. The real application will consist of an engine (main program) to do the
  7401. work and these separately compiled programs to handle among other things
  7402. the communication protocol conversion between a host computer and
  7403. different types of coordinate measuring machines.
  7404.  
  7405. I would appreciate any type of response and to anyone brave enough to try
  7406. to help any additional info that would clarify.  Thanks in advance!
  7407.  
  7408. Don
  7409. ---------------
  7410. Following thread
  7411.  
  7412. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ASD0488 Date: 06/23/89
  7413. From: STEVEN KEY                                            Time: 09:08 am
  7414.   To: DON BOWEN (Rcvd)                                      (Read 112 times)
  7415. Subj: R: LOADABLE EXTERNAL ROUTINES
  7416.  
  7417. Don,
  7418.  
  7419. There are probably a lot of ways to skin this particular cat.  Without
  7420. knowing just how tightly coupled your main program and its modules need to
  7421. be, I can suggest two methods.  For tight coupling, write the modules as
  7422. overlays.  I know this works in Turbo Pascal - I must confess I don't use
  7423. C, I just like to read this conference.  I assume that most of the C
  7424. compilers support overlays.  The main program can read the configuration
  7425. file to decide which overlays to use.  Pibterm, for instance, uses a
  7426. configuration file to store info about which terminal emulation and file
  7427. transfer protocol you want to use, and loads the appropriate overlays.
  7428.  
  7429. The second method would be to write separate programs and use the EXEC
  7430. function inside the main program to execute the sub-programs.  Sharing
  7431. data becomes more involved this way.
  7432.  
  7433. There are lots of good C programmers on the board, and I expect that if
  7434. you ask a more specific question they will come to your aid.
  7435.  
  7436. Steven
  7437. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  7438.  
  7439. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATN0134 Date: 06/24/89
  7440. From: PAT SHEA                                              Time: 07:02 pm
  7441.   To: GRANT ELLSWORTH (Rcvd)                                (Read 112 times)
  7442. Subj: <CTRL-BRK> : OLD STUFF
  7443.  
  7444. Grant :
  7445.  
  7446. 'bout a yr ago you were playing with <read that fighting with> the ^C
  7447. echo -  what follows is some code that was given to me recently.  I think
  7448. that it comes from FidoNet's C_ECHO
  7449.  
  7450. /* MSC 5.10 */
  7451. /*PLF Mon  06-19-1989  05:49:31 */
  7452. #include <stdio.h>
  7453. #include <dos.h>
  7454. #include <conio.h>
  7455.  
  7456. static void ( interrupt cdecl far * old_9 )( void );
  7457. static void interrupt cdecl far trap_break( void );
  7458. static void interrupt cdecl far new_9( void );
  7459. void main( void );
  7460.  
  7461. static user_abort = 0;
  7462.  
  7463. static void interrupt cdecl far trap_break( void )
  7464. {
  7465.    user_abort++;    // inc every time user hits ^break
  7466. }
  7467.  
  7468. static void interrupt cdecl far new_9( void )
  7469. {
  7470.    static char far *shift_state = (char far *) 0x417;
  7471.    static int scancode, kcode;
  7472.  
  7473.    if ( *shift_state & 4 ) {   // CTRL pressed ?
  7474.       scancode = inp( 0x60 );
  7475.       if ( scancode == 46 ) {  // 'C' key?
  7476. // ACK key
  7477.          kcode = inp( 0x61 );
  7478.          (void) outp( 0x61, kcode | 0x80 );
  7479.          (void) outp( 0x61, kcode );
  7480. // signal EOI (end of interrupt) to 8259
  7481.          (void) outp( 0x20, 0x20 );
  7482.          return;               // IRET
  7483.       }
  7484.    }
  7485.    _chain_intr( old_9 );       // if we don't handle key, jump to BIOS
  7486. }
  7487.  
  7488. void main( void )
  7489. {
  7490.    void ( interrupt cdecl far * old_23 )();
  7491.    void ( interrupt cdecl far * old_1b )();
  7492.  
  7493.    old_23 = _dos_getvect( 0x23 );        // Dos ^C int
  7494.    old_1b = _dos_getvect( 0x1b );        // Bios ^break int
  7495.    old_9 = _dos_getvect( 0x09 );         // 8259 keyboard ISR
  7496.    _dos_setvect( 0x23, trap_break );
  7497.    _dos_setvect( 0x1b, trap_break );
  7498.    _dos_setvect( 0x09, new_9 );
  7499.    while ( 1 ) {
  7500.       printf( "Try hitting ^C or ^break.\n" );
  7501.       if ( kbhit() )
  7502.          break;
  7503.       }
  7504.    (void) getch();                       // eat keyboard character
  7505.    _dos_setvect( 0x23, old_23 );         // replace old ints
  7506.    _dos_setvect( 0x1b, old_1b );
  7507.    _dos_setvect( 0x09, old_9 );
  7508. }
  7509.  
  7510. // interesting. . . . pats.
  7511. ---------------
  7512. Following thread
  7513.  
  7514. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATP1996 Date: 06/24/89
  7515. From: GRANT ELLSWORTH (Leader)                              Time: 08:33 pm
  7516.   To: PAT SHEA (Rcvd)                                       (Read 112 times)
  7517. Subj: R: <CTRL-BRK> : OLD STUFF
  7518.  
  7519. Pat, You bet I'm curious and interested.   I DID come up with 3 kinds of
  7520. solutions, one of which did include an alternate intr 09 handler.  I
  7521. thought I had long since uploaded the code with the baseline MSC CAROTC
  7522. code ... but I can't find it here.  I have it somewhere on some floppies
  7523. (my pc area is overloaded with floppies) ... when I find it, I'll revisit
  7524. the code to see if it has my final version and upload it if clean.  The
  7525. UNFILKEY.ZIP on Mahoney is my primitive suggestion for a partial
  7526. workaround ... but it still "breaks" out if use hits ^BRK or any of its
  7527. cousins during screen output.   Grant
  7528.  
  7529. This other thing I've got to find .... had some more insulation from
  7530. the ^BRK (and friends) and could be compiled in TC, MSC , and WC (6.5).
  7531. It also had kernal to use when run on a ps/2 - AT 12-pf-key keyboard.
  7532. ---------------
  7533. ** Current thread: <CTRL-BRK> : OLD STUFF
  7534.  
  7535. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2ATS1455 Date: 06/24/89
  7536. From: PAT SHEA                                              Time: 11:24 pm
  7537.   To: GRANT ELLSWORTH (Rcvd)                                (Read 108 times)
  7538. Subj: R: <CTRL-BRK> : OLD STUFF
  7539.  
  7540. grant...
  7541. you must have uploaded carotc at some time or another cuz i've got it
  7542. here.  it was just 'bout a year ago that we had a whole bunch of crosstalk
  7543. going back and forth on this one....
  7544. keep diggin'
  7545. pats.
  7546. ---------------
  7547. ** Current thread: <CTRL-BRK> : OLD STUFF
  7548.  
  7549. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AUF2314 Date: 06/25/89
  7550. From: GRANT ELLSWORTH (Leader)                              Time: 11:38 am
  7551.   To: PAT SHEA (Rcvd)                                       (Read 105 times)
  7552. Subj: R: <CTRL-BRK> : OLD STUFF
  7553.  
  7554. Pat, I did not upload the CAROTC, but one of our other correspondents must
  7555. have at about that time.  I remember some correspondence on this back
  7556. then.  Anyway, that pgm was my baseline.
  7557.  
  7558. Also, both the new thing you uploaded AND that original carotc have 2
  7559. flaws:
  7560.  
  7561. o The ps/2 bios is re-entrant ... so heaven help a single threaded intr09.
  7562. o The ^@ will be taken as an "unstopped" ^C/^BRK in both those pgms
  7563.  
  7564. My "final solution" squelched all 3 + an <alt-03> and substuted another
  7565. character in case these things were needed , but not to be pgm stoppers.
  7566.  
  7567. grant
  7568. ---------------
  7569. ** Current thread: <CTRL-BRK> : OLD STUFF
  7570.  
  7571. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AUR2820 Date: 06/25/89
  7572. From: PAT SHEA                                              Time: 10:47 pm
  7573.   To: GRANT ELLSWORTH (Rcvd)                                (Read 104 times)
  7574. Subj: R: <CTRL-BRK> : OLD STUFF
  7575.  
  7576. grant...
  7577. i remember we had quite a conversation going 'bout this one then.  you
  7578. were beginning to take on the look of the "Indiana Jones" of the ^C beat -
  7579. i just sorta gave up on it.
  7580. best regards,
  7581. pats.
  7582. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  7583.  
  7584. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AVP1954 Date: 06/26/89
  7585. From: MIKE SZYMANSKI                                        Time: 08:32 pm
  7586.   To: ALL                                                   (Read 105 times)
  7587. Subj: X-WINDOWS
  7588.  
  7589. My associates and I are hoping to continue our R&D into X-Windows apps
  7590. within the next month or so, and we are looking to start a forum for
  7591. discussion and information exchange between andyone with knowledge of
  7592. X-Windows or just an interest. If demand grows we will probably open up
  7593. our BBS for the forum.  Respond if at all interested.
  7594. ---------------
  7595.  
  7596. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AW10490 Date: 06/27/89
  7597. From: MIKE CODY                                             Time: 01:08 am
  7598.   To: MARK HOWELL (Rcvd)                                    (Read 102 times)
  7599. Subj: R: GREETINGS
  7600.  
  7601. I agree with your assement Mark, I am a novice 'c' programer, but do
  7602. development in clipper. Because clipper includes it's entire runtime
  7603. library in the EXE is why it's so big. It to my understanding does'nt jsut
  7604. pick out the routines called, but puts 'em all in for good measure. Maybe
  7605. its just to impress our customers with how much code they are getting for
  7606. their money? I once again state a belief all programmers should learn to
  7607. program on a 64k machine, would teach how to write tight memory efficient
  7608. code for a change. I just commented over in the comm section, I remember
  7609. when you could fit Wordstar,Spelstar, and Mailmerge on one 360k floppy! I
  7610. could edit a 100 page document, and still have SideKick fully loaded, with
  7611. only 640k...it's getting to the point that all the graphics bells and
  7612. whistles are gettting ridiculous. Geez...now I even need a meg on my VGA
  7613. card to run some prgs at a reasonable speed. That would be an interesting
  7614. debate to begin somewhere on EXEC...for I am definently ANTI-Graphical
  7615. interface...some one show me PROOF where a mouse and Icon lets anyone
  7616. learn to get around faster than a simple menu that says press "A" for
  7617. apple, "B" for bear etc. And does'nt take 300k of ram to do it! I don't
  7618. for one second belive you can show a definate proof where the relation of
  7619. the horizontal movement of mouse is identical to the vertical movement of
  7620. an icon. Most folks don't have the eye-hand coordination to drive a car
  7621. let alone this stuff.
  7622.  
  7623. Perhaps Grant you have a suggestion of an area  on EXEC I could begin this
  7624. discussion. For sure this is not the appropriate one except for the 
  7625. PRG end of it...
  7626.  
  7627. Mike Cody
  7628. ---------------
  7629. Following thread
  7630.  
  7631. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AW12200 Date: 06/27/89
  7632. From: MARK HOWELL                                           Time: 12:36 am
  7633.   To: ALL                                                   (Read 108 times)
  7634. Subj: GREETINGS
  7635.  
  7636. Greetings to all.
  7637. After reading (forever) to catch up on the messages of this conference, I
  7638. have become intriged by the competence level of some of the members and
  7639. would like very much to join in on some of the discussions passing by.
  7640. .
  7641. I would like to start by stating that I work primarily in MSC5.1 due to
  7642. the standards of the company I work for, but for outside projects, I tend
  7643. to work with other systems.  In response to the Ultimate Programming
  7644. Language,  I think C misses the mark.  Because time=money, rapid code
  7645. generation and debugging, I feel C leaves you hanging with debuggers
  7646. trying to track down the elusive null pointer assignment while attempting
  7647. the elequent solution.  It appears Henricks cry for a more procedural
  7648. language was a clear plea for Turbo Pascal (especially 5.5 OOP's) even
  7649. though he appears to despise TP so much.  I am fairly proficient in MSC,
  7650. TC and assembler (though admittedly not as much with assembler).  For the
  7651. majority of applications, I have found that C cannot compare with Pascal
  7652. for speed of development, and does not exhibit any reasonable increase in
  7653. performance.  C does offer, though, great portability and flexibility.  I
  7654. feel Grant has hit the nail on the head when he said that no one language
  7655. is best suited for all applications.  Either of these languages are
  7656. equally applicable for real world development, limited only by the skill
  7657. of the programmer, with the possible exception of Clipper.  What gives
  7658. with a clipper application that does nothing other than display a text
  7659. file but has a whopping 126K executable size?  If anyone can enlighten me
  7660. as to why this is and how it can be circumvented, I would be most
  7661. greatful.  I might then, once again try to develop with this monster.
  7662. ---------------
  7663. ** Current thread: GREETINGS
  7664.  
  7665. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AWF1922 Date: 06/27/89
  7666. From: DON BOWEN                                             Time: 11:32 am
  7667.   To: MARK HOWELL (Rcvd)                                    (Read 101 times)
  7668. Subj: R: GREETINGS
  7669.  
  7670. Mark, couldn't help but notice the '.' you used to avoid a blank line.
  7671. I did exactly the same thing.  You can just put a space in its place and
  7672. the message will not end.  Also, I could not disagree with you more about
  7673. the C/Pascal development time.  I'm sure it's what you are most familiar
  7674. with that seems the fastest.  As far as the size of the Clipper
  7675. executable, the functions you can call are grouped into modules inside the
  7676. Clipper library.  If you call one of the functions you get the whole
  7677. module.  Unfortunately, the base module is HUGE!  I'm sure that this will
  7678. be addressed with the release of the new Clipper later this year.
  7679.  
  7680. Don
  7681. ---------------
  7682. ** Current thread: GREETINGS
  7683.  
  7684. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AWL3246 Date: 06/27/89
  7685. From: GRANT ELLSWORTH (Leader)                              Time: 05:54 pm
  7686.   To: MIKE CODY (Rcvd)                                      (Read 100 times)
  7687. Subj: R: GREETINGS
  7688.  
  7689. Well, Mike, if your focus will be on C programming as the tool, this forum
  7690. is as good as any.  I'm sure C systems and applications programmers have
  7691. some strong views on this subject.  I certainly do.  To wit: WIMPS is
  7692. definitely self-descriptive .... and "MICE" should be eaten by cats (mouse
  7693. is a 5 letter stand-in for the 4 letter expletive and is an expletive in
  7694. itself).  I have advised my spouse (a committed PC user and application
  7695. developer in dbase) that: a) If I should see any kind of mouse within 10
  7696. yards of the MS-DOS pc's in our office, it will have a quick engagement
  7697. with my sledge-hammer ... b) an electronic analog device attached to any
  7698. item vaguely resembling a computer better be attached to the "fruit"-
  7699. named thing if it is to have survival chances ... and to survive, it had
  7700. better be in its own safe in another room ....
  7701.  
  7702. grant
  7703. ---------------
  7704. ** Current thread: GREETINGS
  7705.  
  7706. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AWM0069 Date: 06/27/89
  7707. From: GRANT ELLSWORTH (Leader)                              Time: 06:01 pm
  7708.   To: MARK HOWELL (Rcvd)                                    (Read 103 times)
  7709. Subj: R: GREETINGS
  7710.  
  7711. Mark, Let me pass credit on to Joe Vincent for his initial observation
  7712. that no one lanuage is good for all kinds of applications ... where Joe
  7713. and I may part ways is that I think C***L is not good for any.  As to C vs
  7714. Pascal ... I like to use them both and personally favor use of neither
  7715. over the other.  However, with the exception of the widely used Borland
  7716. implementation, most Pascal implementations are not as elastic as C.
  7717. I prefer elasticity in my programming tools, for that allows me to use
  7718. more of the underlying architecture's capabilities more effectively and
  7719. directly.    Grant
  7720. ---------------
  7721. ** Current thread: GREETINGS
  7722.  
  7723. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AXM3279 Date: 06/28/89
  7724. From: MARK HOWELL                                           Time: 06:54 pm
  7725.   To: GRANT ELLSWORTH (Rcvd)                                (Read 106 times)
  7726. Subj: R: GREETINGS
  7727.  
  7728. I think I agree with you that C is more elastic than t.pascal.  I tend to
  7729. use C for more systems level programming for just that reason whil I
  7730. prefer Pascal when I have a high level application that I need to get out
  7731. quickly but where I dont need to pull any "tricks" out of my hat simply
  7732. because I tend to spend less time tracking down any run time errors.  When
  7733. you need to really git down to the nitty gritty of the system level
  7734. architecture, I've found asm to be a needed addition to either c or
  7735. pascal.
  7736. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  7737.  
  7738. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AWR0485 Date: 06/27/89
  7739. From: JAMES SABATKE                                         Time: 10:08 pm
  7740.   To: ALL                                                   (Read 101 times)
  7741. Subj: VI-EDITOR
  7742.  
  7743. Some time ago I downloaded a nice "VI" editor.  I can't find the disk now
  7744. and would like it, but I can't find it again. (I've searched in every way
  7745. I can think of)  Does any body know the filename so I can download it
  7746. again?
  7747.  
  7748. Thanx in advance,   Jim S.
  7749. ---------------
  7750.  
  7751. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AX23138 Date: 06/28/89
  7752. From: PHIL KATZ                                             Time: 02:52 am
  7753.   To: ALL                                                   (Read 106 times)
  7754. Subj: UNTRACEABLE CODE & OS/2
  7755.  
  7756. Does anyone have any idea how to hamper execution tracing of a program
  7757. running under OS/2?  Under MS-DOS, this is fairly easy, because a MS-DOS
  7758. program can manipulate interrupt vectors, stacks, hardware ports etc. at
  7759. will.  Of course, OS/2 will squash you like a bug if you try to do
  7760. anything even slightly nasty.  Is anyone aware of how to go about writing
  7761. 'covert code' under OS/2?
  7762.  
  7763. >Phil>
  7764. ---------------
  7765. Following thread
  7766.  
  7767. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AXM0950 Date: 06/28/89
  7768. From: GRANT ELLSWORTH (Leader)                              Time: 06:15 pm
  7769.   To: PHIL KATZ (Rcvd)                                      (Read 105 times)
  7770. Subj: R: UNTRACEABLE CODE & OS/2
  7771.  
  7772. >covering tracks in os/2 ....
  7773.  
  7774. I'm not sure that it is worth it = because of the nature of the os/2 users
  7775. at this time.  However, maybe you could use some kind of encrypted com-
  7776. pression scheme - decompressing into scrub memory only as you need to
  7777. execute the code .... yes, eventually somebody could crack it, but by the
  7778. time it was done, it might be code that's been superceded.
  7779. Also, take into account the availability of debuggers and dis-assemblers
  7780. which will let you view large slops of code without commencing execution.
  7781.  
  7782. A very stubborn and clever hatchet-hacker could probably crack the
  7783. protection scheme anyway.
  7784.  
  7785. Another interesting idea is the IBM Mainframe notion of an "authorized"
  7786. library ... maybe there will be some similar kind of facility on os/2.
  7787.  
  7788. grant
  7789. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  7790.  
  7791. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2AYN2770 Date: 06/29/89
  7792. From: PAT SHEA                                              Time: 07:46 pm
  7793.   To: GRANT ELLSWORTH (Rcvd)                                (Read 110 times)
  7794. Subj: FROM USENET : STD'S FYI
  7795.  
  7796. In defense of the X3J11 committee : chris@mimsy.UUCP (Chris Torek)
  7797.  
  7798. In article <10466@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes:
  7799. >I have to say that I resent the tone of [ND]'s criticism.  X3J11
  7800. >did an excellent job of standardizing the C programming language,
  7801.  
  7802. Despite the razzings I give it as often as possible :-) , I have to
  7803. agree.  (I think my position is essentially the same as Henry Spencer's
  7804. and Dennis Ritchie's, although we may all disagree as to the few things
  7805. we think should have been done differently.  Henry and I enjoy teasing
  7806. in public.  Dennis, of course, would never do that; as Founder of the C
  7807. Programming Language, he has an Image to maintain.  And in case you have
  7808. not guessed by now, I am at it again.  But this started out as a serious
  7809. posting; maybe I can steer it back again....)
  7810.  
  7811. >and you could have participated if you had chosen to do so.
  7812.  
  7813. This might not be true.  Consider all the requirements for participation
  7814.  
  7815. First, you have to know about the standardisation effort.  Now, despite
  7816. the sounds of protest I hear in the background, it is manifestly evident
  7817. that a large and vociferous group of people had never heard of X3J11
  7818. until the noalias fight broke out.  (Perhaps this has something to do
  7819. with their vociferosity.  Oops, digressing again.)  Anyway, it happens
  7820. that many who might have participated in some standard hear about it
  7821. only when it is all over.
  7822.  
  7823. Assuming you do know of it, what else does it take to participate?
  7824.  
  7825. To be a committee member, you must be independently wealthy, or else you
  7826. must find a sponsor.  If you work for a company that sells compilers,
  7827. you have a sponsor.  If you work for a public university that uses the
  7828. language, you might possibly have some way to cajole some dollars to
  7829. leak out of the bureaucracy in your general direction, but you do *not*
  7830. have a `sponsor'.  If you work for a large corporation that uses the
  7831. language, you might have a sponsor.  If you are a consultant, you will
  7832. have to spend your own money.  And it does take money.  Standards
  7833. committee meetings, even for American National Standards, are held all
  7834. over, not just the U.S.A. but the world!  Only fair, perhaps; American
  7835. standards have a way of forcing the rest of the world along, and there
  7836. is much cooperation between the national and international standards
  7837. organisations.  You can expect to travel to California, Vermont, France,
  7838. and so on.  Of course, you can mix vacations with work.  But the
  7839. meetings also take time, which is to say money.  Some $ here, some $
  7840. there; without a sponsor, most cannot afford it.
  7841.  
  7842. Well, if you cannot be on the committee, at least you can influence the
  7843. committee.  That is what public reviews are for.  What does it take for
  7844. these?
  7845.  
  7846. Submitting review comments is much easier.  All you have to do is buy a
  7847. copy of the latest draft---for a mere $75 or so---learn Standardese,
  7848. read it from end to end, study everything closely, read it over again
  7849. (better check it once more to be sure), figure out what you want to say,
  7850. write it down, type it up, put it in a letter and send it in.
  7851.  
  7852. In two months.
  7853.  
  7854. Never mind the fact that you will not get your draft copy for three
  7855. weeks.  Well no; better mind it after all.  You have one month to study
  7856. and think.  If your work schedule is still on time, the children are
  7857. healty, the IRS does not audit you, your house is not under termite
  7858. attacks, and all the myriad other distractions are held at bay, why, you
  7859. have plenty of time.
  7860.  
  7861. (Of course, if you are a student, $75 might be a big deal.  Not to
  7862. worry.  Reviews come up no more than once a year, and you only have to
  7863. go through three or four.  By then you may have graduated anyway.
  7864. Besides, what do students know about languages?)
  7865.  
  7866. Well.  Perhaps I have overstated things, but what effect does your
  7867. public review comment have?  Unless you found an editorial mistake, the
  7868. reply will most likely be something like this:
  7869.  
  7870.         The Committee has reviewed your suggestion and voted on
  7871.         it.  The result was 29 to 1 against.
  7872. Or:
  7873.         The description in paragraph 4, subsection 13, section 517,
  7874.         chapter 33, volume 95 of the draft Standard is perfectly clear
  7875.         to everyone on the Committee.  So there!
  7876.  
  7877. (Well, maybe not.  Actually, some people send some really stupid
  7878. suggestions; the reply editor is required to be polite even then.)
  7879.  
  7880. There is one thing you can do.  You can get `observer' status.  For some
  7881. fee (I know not how much: I read a friend's copies of everything), you
  7882. can get everything that is mailed to each committee member be mailed to
  7883. you as well.  But that is an amazing amount of material.  Keeping up
  7884. with it all is *hard*.  Though you get drafts early, the amount of
  7885. additional paper to read is daunting.  You may still have trouble
  7886. getting comments in on time.
  7887.  
  7888. Of course, if you think a bit, you will see that the committee members
  7889. have to do all this work too, and more besides.  And then maybe you will
  7890. appreciate their effort more.
  7891.  
  7892. (Gosh, I love twist endings!)
  7893. --
  7894. ---------------
  7895.  
  7896. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B4N3425 Date: 07/04/89
  7897. From: JOHN ABATTE                                           Time: 07:57 pm
  7898.   To: ALL                                                   (Read 124 times)
  7899. Subj: HELP WITH C
  7900.  
  7901. Hi All,
  7902.  
  7903.     In my C programming course we've been given an assignment to read in
  7904. a text file and reformat it so that it is right and left-justified, and
  7905. we have to use DOS redirection to read and write the file
  7906.  
  7907.     I'm trying to include some extra error-trapping in the homework
  7908. assignment in the event the user neglects to enter an input filename on
  7909. the command line. If this happens I would like to display a message for
  7910. the user explaining the proper usage syntax. Problem is I can't figure
  7911. out how to implement it with the redirection on the command line. I
  7912. tried the following in my main function, but found it doesn't work with
  7913. DOS redirection, only command-line arguments.
  7914.  
  7915. main(int argc)
  7916. {
  7917.   if (argc < 2)  /* show correct syntax if no input filename is given */
  7918.   {
  7919.     printf("Usage is: hw2ja < input.fil > output.fil\n");
  7920.     exit(0);     /* terminate the program if no input */
  7921.   }
  7922.   buildline();
  7923. }
  7924.  
  7925.     In my buildline function I'm using getchar() to read in the file, so
  7926. if the user enters the program name by itself it just sits there waiting
  7927. for input and has to be terminated by entering ^Z. The rest of the
  7928. program is complete except for this. I'd really appreciate it if anyone
  7929. has any suggestions how to do this properly.
  7930.  
  7931. C'ya...John.
  7932. ---------------
  7933. Following thread
  7934.  
  7935. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B4R1090 Date: 07/04/89
  7936. From: PAT SHEA                                              Time: 10:18 pm
  7937.   To: JOHN ABATTE (Rcvd)                                    (Read 114 times)
  7938. Subj: R: HELP WITH C
  7939.  
  7940. John :
  7941.  
  7942. try using....
  7943.  
  7944.            fprintf( stderr, "your text" );
  7945.  
  7946.      stderr cannot be redirected (by any NORMAL means)
  7947.             ~~~~~~
  7948. also
  7949.  
  7950.      Consider changing your EXIT to an exit( 1 ) or something
  7951.      other than '0'.  An exit( 0 ), by convention, means everything
  7952.      is OK.  Something other than '0' signifies some sort of an error
  7953.      condition.  'sort of a confusing convention, but in C, RETURNing a
  7954.      '0' from a FUNCTION usually means that the function failed to do
  7955.      what it was spoze to do, but an EXIT of '0' means everything is
  7956.      ok !!!!                         ~~~~
  7957.  
  7958. plz note that you CAN work exit and return any way that is convenient
  7959. and understandable TO YOU - I'm just tossing the above in FYI.
  7960.  
  7961. pats.
  7962. ---------------
  7963. ** Current thread: HELP WITH C
  7964.  
  7965. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B510475 Date: 07/05/89
  7966. From: MARK TELLIER                                          Time: 12:07 am
  7967.   To: JOHN ABATTE (Rcvd)                                    (Read 116 times)
  7968. Subj: R: HELP WITH C
  7969.  
  7970. John,
  7971.  
  7972. The argc will return the number of parameters on the command line.  The
  7973. redirection of input and output under DOS isn't counted in this parameter
  7974. count.  Therefore, the line    PROGRAM < INFILE > OUTFILE with only have
  7975. one parameter (the program name).  The INFILE and OUTFILE stuff is
  7976. intercepted by DOS.
  7977.  
  7978. I think there might be a way to get (and check) the whole command line
  7979. from the programs environment space (something I've never tried to do).
  7980.  
  7981. Another way to do what you want, is to wait for a defined amount of time
  7982. and if no input is received, use this as a criteria for an  bad command
  7983. line entry and act accordingly.
  7984.  
  7985. Hope this helps.   - mwt -
  7986. ---------------
  7987. ** Current thread: HELP WITH C
  7988.  
  7989. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B5L1072 Date: 07/05/89
  7990. From: GRANT ELLSWORTH (Leader)                              Time: 05:17 pm
  7991.   To: JOHN ABATTE (Rcvd)                                    (Read 110 times)
  7992. Subj: R: HELP WITH C
  7993.  
  7994. John, as noted by others, you can use fprintf(stderr, .....); but you
  7995. can also use cprintf(" ....", msg), cputs(msg), in many compilers ...
  7996. I think both MSC and TC support these functions .... they mean to write
  7997. directly to the console bypassing stdout.   Grant
  7998. ---------------
  7999. ** Current thread: HELP WITH C
  8000.  
  8001. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B5M0582 Date: 07/05/89
  8002. From: JOHN ABATTE                                           Time: 06:09 pm
  8003.   To: PAT SHEA (Rcvd)                                       (Read 110 times)
  8004. Subj: HELP WITH C
  8005.  
  8006. Message CC'd to:
  8007.      PAT SHEA
  8008.      MARK TELLIER
  8009.      GRANT ELLSWORTH
  8010.  
  8011. Great! Thanks for the help on that redirection problem. I'll give it a try
  8012. and see how it goes. I'd been puzzling over this for the better part of
  8013. two days. It's the last thing I need to do before turning in the
  8014. assignment.
  8015. Thanks again everyone.
  8016. Ciao for now...John
  8017. ---------------
  8018. ** Current thread: HELP WITH C
  8019.  
  8020. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B5J0369 Date: 07/05/89
  8021. From: DON BOWEN                                             Time: 03:06 pm
  8022.   To: ALL                                                   (Read 113 times)
  8023. Subj: SEGMENT OVERFLOW
  8024.  
  8025. Could someone tell me what I can do to take care of the following problem:
  8026.  
  8027. Linker Error: Segment overflowed maximum size: _TEXT
  8028.  
  8029. I am using TC 2.0!  Thanks in advance.  I am also having a problem using
  8030. sscanf() to convert an ASCII string to float.  It works fine with a format
  8031. of "%f", but locks my machine if I use "%12.8f"!  I have already applied
  8032. the patches from Borland.  Hope somebody knows what the problem is.
  8033.  
  8034. Don
  8035. ---------------
  8036. Following thread
  8037.  
  8038. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BAQ0654 Date: 07/06/89
  8039. From: DAVID NYE                                             Time: 09:10 pm
  8040.   To: DON BOWEN (Rcvd)                                      (Read 110 times)
  8041. Subj: R: SEGMENT OVERFLOW
  8042.  
  8043. Read the first part of Ch. 12 of the Turbo C user's guide to understand
  8044. what that error message means.  The short answer is that you need to use
  8045. the Medium model instead of the default Small model.  Instead of using
  8046. sscanf(), try atof(), which is what sscanf() calls to do the conversion
  8047. anyway.  Who knows, it might even decrease your code size enough that you
  8048. will get rid of that segment overflow message (sscanf, printf, etc. are
  8049. pretty large).
  8050. ---------------
  8051. ** Current thread: SEGMENT OVERFLOW
  8052.  
  8053. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBC1469 Date: 07/07/89
  8054. From: DON BOWEN                                             Time: 08:24 am
  8055.   To: DAVID NYE (Rcvd)                                      (Read 112 times)
  8056. Subj: R: SEGMENT OVERFLOW
  8057.  
  8058. David,
  8059.  
  8060. Thanks for responding.  I was using the Compact memory model and went to
  8061. the Huge memory model.  The first time I tried that it didn't work because
  8062. I needed to recompile some of the other .obj files.  I will try using
  8063. atof() to see if it makes a difference.  Thanks again.
  8064.  
  8065. Don
  8066. ---------------
  8067. ** Current thread: SEGMENT OVERFLOW
  8068.  
  8069. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCH2302 Date: 07/08/89
  8070. From: DAVID NYE                                             Time: 01:38 pm
  8071.   To: DON BOWEN (Rcvd)                                      (Read 109 times)
  8072. Subj: R: SEGMENT OVERFLOW
  8073.  
  8074. One other thing I forgot to mention:  You can't specify a width or
  8075. precision for sscanf(), so sscanf(string, "%12.5f", &f) won't work.  The
  8076. width and precision specifications only work with output.
  8077. ---------------
  8078. ** Current thread: SEGMENT OVERFLOW
  8079.  
  8080. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BEC3010 Date: 07/10/89
  8081. From: DON BOWEN                                             Time: 08:50 am
  8082.   To: DAVID NYE (Rcvd)                                      (Read 117 times)
  8083. Subj: R: SEGMENT OVERFLOW
  8084.  
  8085. David, no precision in the sscanf() makes sense. Thanks a bunch.
  8086.  
  8087. Don
  8088. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  8089.  
  8090. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BAP3433 Date: 07/06/89
  8091. From: MIKE CODY                                             Time: 08:57 pm
  8092.   To: ALL                                                   (Read 107 times)
  8093. Subj: IN SEARCH OF
  8094.  
  8095. I am in search of information on the implementation of CTS/RTS
  8096. flow checking in a terminal program. I am not real sure I need
  8097. source code or anything, just some general instruction on how
  8098. such an act is accomplished. This info is needed by the author
  8099. of Telemate, one Winfred Hu of Canada. His program is one fine
  8100. piece of comm software, but lacks RTS/CTS due to his lack of
  8101. knowledge on exactly how to implement it. Any info on how to
  8102. do this is appreciated. i don't know the exact lanquage he is
  8103. using, but I would guess since the prg allows realtime
  8104. multitasking/Time Slicing...it's "C" most likely, maybe
  8105. Pascal. Any and all help will be forwarded with credits to Mr.
  8106. Hu on the Southwest Connect in Windsor Canada...
  8107.  
  8108. Thanx in Advance..
  8109.  
  8110. Mike Cody
  8111. ---------------
  8112.  
  8113. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BAR2297 Date: 07/06/89
  8114. From: MARK HOWELL                                           Time: 10:38 pm
  8115.   To: ALL                                                   (Read 114 times)
  8116. Subj: OBJECT ORIENTED PROGRAMMING
  8117.  
  8118. I've recently been hearing much to do about OOP's programming; enouph to
  8119. really perk my interest, but I can't get a handle on the different
  8120. terminology that different people are using.  I've downloaded the complete
  8121. C front end (I'm not sure if I got it from here or somewhere else) but the
  8122. documentation that was provided left me feeling a little confused on how
  8123. to use it.  Maybe I'm just a little bit slow or perhaps others of you out
  8124. there are having the same problem.  Can someone clear things up for me?
  8125. Maybe this might be a good topic for a new thread.  Any ideas?
  8126. Thanks
  8127. Mark S. Howell
  8128. ---------------
  8129. Following thread
  8130.  
  8131. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBC1205 Date: 07/07/89
  8132. From: PATRICK LEMIRANDE                                     Time: 08:20 am
  8133.   To: MARK HOWELL (Rcvd)                                    (Read 120 times)
  8134. Subj: R: OBJECT ORIENTED PROGRAMMING
  8135.  
  8136. Mark,
  8137.  
  8138.      how is this for a start:
  8139.  
  8140.      What is Object Oriented Programming????
  8141.  
  8142. Patrick
  8143. ---------------
  8144. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8145.  
  8146. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBN1444 Date: 07/07/89
  8147. From: MIKE SZYMANSKI                                        Time: 07:24 pm
  8148.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 120 times)
  8149. Subj: R: OBJECT ORIENTED PROGRAMMING
  8150.  
  8151. Patrick,
  8152. If I might answer that for you... Object Oriented Programming (OOPs) is a
  8153. revolutionary concept of utilizing object constructs to represent
  8154. procedural or modular code to allow application development to be
  8155. accomplished at a much greater pace and consistency.  A typical example
  8156. would be:  a graphically based data entry program could be written using
  8157. general functions that represent the creation of windows for the data,
  8158. field boxes to accept data, dialog buttons to allow user response etc.
  8159. There are two connected branches or types of OOPs. One is Object oriented
  8160. application tools that provide visual objects and models to the programmer
  8161. to allow him/her\her/him to structure a program program using defined
  8162. objects (window creation could used a function called CreateWindow() for
  8163. example). Two is object oriented user interfaces, which are more exploding
  8164. on the scene as Graphical User Interfaces (GUI's - Dec-windows, OpenLook,
  8165. CXI, Next's NextStep, Motif <my favorite> and of course the PC's very own
  8166. Presentation Manager, and MS-Windows). Programs that utilize graphical
  8167. desktops, windows and icons are considered (basically) as object oriented
  8168. user interfaces.  The above is fragmented by generalized statements but
  8169. I'll leave specific detail for later!!
  8170.  
  8171. ---------------
  8172. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8173.  
  8174. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBP2208 Date: 07/07/89
  8175. From: MARK HOWELL                                           Time: 08:36 pm
  8176.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 117 times)
  8177. Subj: R: OBJECT ORIENTED PROGRAMMING
  8178.  
  8179. Patrick,
  8180. To my understanding (very limited) object oriented programming is a new
  8181. style of programming that is being sold as a better alternative to
  8182. procedural programming.  Instead of having functions and procedures, you
  8183. have objects comprised of data and methods.  An object can define its own
  8184. data and methods and act on those or it can inherent data and methods from
  8185. other objects and add to them or optionally redefine them.  Somewhere in
  8186. there you have foundations and classes but I cannot say where.
  8187. Supposedly, the object oriented approach to programming lends itself to
  8188. rapid prototyping and a much higher degree of maintainability.  I found a
  8189. package from Complete C called COMPC.ZIP that is basically an object
  8190. oriented programming front end to regular C.  I have used it with MSC5.1
  8191. and it appeared to work fine with the example programs but I really didn't
  8192. understand all that I was looking at.  All I can say is that with Complete
  8193. C, I took and example program much akin to 'whereis' that had a listing of
  8194. maybe a page and a half at most and compiled it to a fully functioning
  8195. program.  The resulting .exe was about 79K in size, but complete 'c'
  8196. corporation claims that they have an optimizer program that strips out
  8197. alot of unneccessary source.  The .exe that was provided with the example
  8198. source was about 29k in size.  Both MicroSoft and Borland have just
  8199. released new Pascal versions that support OOP and both products have
  8200. recieved rave reviews from BYTE and PC World magazines.  Other compilers
  8201. included C++ and SmallTalk.  I highly recommend reading the July BYTE's
  8202. artical on the Pascal implementations of OOP.  It gives a good feel for
  8203. the world of OOP's
  8204. ---------------
  8205. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8206.  
  8207. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCF0671 Date: 07/08/89
  8208. From: PATRICK LEMIRANDE                                     Time: 11:11 am
  8209.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 111 times)
  8210. Subj: R: OBJECT ORIENTED PROGRAMMING
  8211.  
  8212. Mike,
  8213.  
  8214.      thanks for the intro.
  8215.  
  8216. Patrick
  8217. ---------------
  8218. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8219.  
  8220. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCF0824 Date: 07/08/89
  8221. From: PATRICK LEMIRANDE                                     Time: 11:13 am
  8222.   To: MARK HOWELL (Rcvd)                                    (Read 110 times)
  8223. Subj: R: OBJECT ORIENTED PROGRAMMING
  8224.  
  8225. Mark,
  8226.  
  8227.      thanks for the explination.  Sort of a scarie thing.
  8228.  
  8229. Patrick
  8230. ---------------
  8231. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8232.  
  8233. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCH0540 Date: 07/08/89
  8234. From: GRANT ELLSWORTH (Leader)                              Time: 01:09 pm
  8235.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 115 times)
  8236. Subj: R: OBJECT ORIENTED PROGRAMMING
  8237.  
  8238. Could you please translate that into English that blue collar programmers
  8239. can understand?
  8240. ---------------
  8241. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8242.  
  8243. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCJ1823 Date: 07/08/89
  8244. From: MIKE SZYMANSKI                                        Time: 03:30 pm
  8245.   To: GRANT ELLSWORTH (Rcvd)                                (Read 115 times)
  8246. Subj: R: OBJECT ORIENTED PROGRAMMING
  8247.  
  8248. Grant,
  8249. Sorry, my involvment with marketing has gotten the better of my  dialog
  8250. lately.  What I said in practical verbage was that OOP from a programmers
  8251. standpoint is the formation/use/re-use of general libraries of functions
  8252. that are treated like objects.  From an end-user's point of view, Object
  8253. orientation implies the use of visual objects and natural motions (usually
  8254. with a mouse or similar pointing device) to perform operations.  Hope
  8255. that's a little better, Grant.
  8256.  
  8257. ---------------
  8258. ** Current thread: OBJECT ORIENTED PROGRAMMING
  8259.  
  8260. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCL1799 Date: 07/08/89
  8261. From: DAVID NYE                                             Time: 05:29 pm
  8262.   To: GRANT ELLSWORTH (Rcvd)                                (Read 110 times)
  8263. Subj: R: OBJECT ORIENTED PROGRAMMING
  8264.  
  8265.   I have the same frustration over the terminology that the OOPS folks
  8266. have chosen to describe language features.  Here are what I think are
  8267. rough translations into structured language terms:
  8268.  
  8269.    method
  8270.      function or procedure.
  8271.    message
  8272.      function call.
  8273.    class
  8274.      object type definition
  8275.    object
  8276.      module (as in Modula-2).  Contains data and methods acting on the
  8277.      data.  Don't think of this as being like a C structure, as some
  8278.      have suggested.  I think that analogy confuses more than helps.
  8279.      If you haven't used Modula-2, just think of it as a part of your
  8280.      program where you have grouped together declarations and function
  8281.      definitions having a common purpose. Not only is it convenient to
  8282.      have these all in one place, but it makes it easier to find bugs
  8283.      (less code to scan).
  8284.    polymorphism
  8285.      the ability to have methods (functions) in several different
  8286.      kinds of objects with the same name.  Thus the objects Circle and
  8287.      Box can both have a method called Draw.
  8288.  
  8289.   OOPS objects differ from groupings of C code and data in other
  8290. important ways.  The data in an object cannot be accessed directly,
  8291. only through provided methods, providing data hiding.  Thus, the
  8292. programmer only has to remember how to use the functions to manipulate
  8293. the data, not what the physical representation of that data is, thus
  8294. helping to reduce the likelihood of programming errors.  Once the low-
  8295. level code relating to that object has been debugged we can forget
  8296. those details.  It also promotes reusibility of code (once an object
  8297. has been thoroughly debugged and tested, it can be incorporated into
  8298. other programs).
  8299.  
  8300.    inheritance
  8301.      the ability to define a new class of objects by specifying only
  8302.      how it differs from a previous class.
  8303.  
  8304.    In my opinion, inheritance, not the object, is most important idea
  8305. of OOPS.  You can accomplish anything else OOPS has to offer in
  8306. Modula-2, C, FORTH, or even BASIC by adopting an OOPS-like discipline
  8307. to your programming and sticking to it.  While Pascal and Modula-2
  8308. allow you to define new data types which are subsets of existing ones,
  8309. and you can define higher level functions to call lower level ones
  8310. inheritance goes a little further.
  8311.  
  8312.    late or dynamic binding
  8313.      the ability to link a symbol (like a variable name) with its
  8314.      physical representation (or type, like integer, structure,
  8315.      string, etc.) at runtime rather than compile time.
  8316.  
  8317.    Most other compiled languages support only early or static binding.
  8318. In other words, you have to decide whether 'i' is going to be an
  8319. integer, pointer, array, etc., declare it that way, and use it that
  8320. way throughout your program.  I don't like the idea of dynamic
  8321. binding.  While it may allow you to make objects more general and
  8322. therefore more reusable, it adds alot of runtime overhead.  Not all
  8323. languages which call themselves object-oriented support this.
  8324.  
  8325.    I've been following the discussion of OOPS in the computer mags
  8326. fairly closely, because I'm interested in computer languages.  I don't
  8327. think I'm going to jump.  I can do most things OOPS offers in other
  8328. languages, particularly Modula-2 and FORTH.  The things unique to
  8329. OOPS, like inheritance, while likely to allow me to crank out an
  8330. application more quickly, generate slow, lengthy code.  Maybe with an
  8331. 80486 under the hood that wouldn't make as much difference, but I
  8332. still have an 80286, and to me small and fast is still elegant.
  8333. You don't have to use an OOPS to realize the benefits of data hiding,
  8334. modularity and code reusibility.  Just change some programming
  8335. habits in the language you're already using.
  8336. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  8337.  
  8338. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBI1210 Date: 07/07/89
  8339. From: PATRICK LEMIRANDE                                     Time: 02:20 pm
  8340.   To: ALL                                                   (Read 113 times)
  8341. Subj: C THE SUMMER GO BYE
  8342.  
  8343. Help,
  8344.  
  8345.      I have run into another problem:
  8346.  
  8347.      How do you use a literal in a switch command???????
  8348.  
  8349.      case A  : printf.....
  8350.  
  8351.      case 'A' : printf....
  8352.  
  8353.      case "A" : printf.....
  8354.  
  8355.      None of these have worked for me.  I have found that placing a number
  8356. there will work if I input that number, and I really want it to work on
  8357. letters a through g and A through G.
  8358.  
  8359. Patrick
  8360. ---------------
  8361. Following thread
  8362.  
  8363. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBK3123 Date: 07/07/89
  8364. From: MARK TELLIER                                          Time: 04:52 pm
  8365.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 111 times)
  8366. Subj: R: C THE SUMMER GO BYE
  8367.  
  8368. Patrick,
  8369.  
  8370. In the Case statement, the form     case 'a':   should work.  Are you sure
  8371. that there isn't some other error on the line that is making the case
  8372. statement look bad?
  8373.  
  8374. - mwt -
  8375. ---------------
  8376. ** Current thread: C THE SUMMER GO BYE
  8377.  
  8378. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBL2786 Date: 07/07/89
  8379. From: GRANT ELLSWORTH (Leader)                              Time: 05:46 pm
  8380.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 112 times)
  8381. Subj: R: C THE SUMMER GO BYE
  8382.  
  8383. Patrick, I think Mark T. is corrrect on case 'a': ...  I do know that
  8384. case "A" is an illogical construct since "A" represents a string rather
  8385. than a single scaler value which is required in the switch verb.  I also
  8386. wonder whether you are using the 'switch (x){ ...' correctly.  Could you
  8387. provide an example of how you are using it?  Grant
  8388. ---------------
  8389. ** Current thread: C THE SUMMER GO BYE
  8390.  
  8391. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBN0727 Date: 07/07/89
  8392. From: MIKE SZYMANSKI                                        Time: 07:12 pm
  8393.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 111 times)
  8394. Subj: R: C THE SUMMER GO BYE
  8395.  
  8396. Patrick,
  8397. I have used the form ...
  8398.                       case 'A':
  8399.                       case 'Z':
  8400. many times... One thought.  is your switch set on...
  8401.                       switch(*char) or something different?
  8402. ---------------
  8403. ** Current thread: C THE SUMMER GO BYE
  8404.  
  8405. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCF0482 Date: 07/08/89
  8406. From: PATRICK LEMIRANDE                                     Time: 11:08 am
  8407.   To: MARK TELLIER (Rcvd)                                   (Read 112 times)
  8408. Subj: R: C THE SUMMER GO BYE
  8409.  
  8410. Mark,
  8411.  
  8412. RE: some other error on the line that is making the case bad.
  8413.  
  8414.      good point Mark.  I did fine anther error on the line.  I will fix
  8415. the error, do what you said, and compile it again.
  8416.  
  8417.      Thanks for the help.
  8418.  
  8419. Patrick
  8420. ---------------
  8421. ** Current thread: C THE SUMMER GO BYE
  8422.  
  8423. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCH1211 Date: 07/08/89
  8424. From: PATRICK LEMIRANDE                                     Time: 01:20 pm
  8425.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 112 times)
  8426. Subj: R: C THE SUMMER GO BYE
  8427.  
  8428. Mike,
  8429.  
  8430. RE: switch(*char)
  8431.  
  8432.      no, I know that this is a pointer and will compare the address of a
  8433. variable to the literal.
  8434.  
  8435. Patrick
  8436. ---------------
  8437. ** Current thread: C THE SUMMER GO BYE
  8438.  
  8439. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCH1696 Date: 07/08/89
  8440. From: PATRICK LEMIRANDE                                     Time: 01:28 pm
  8441.   To: GRANT ELLSWORTH (Rcvd)                                (Read 117 times)
  8442. Subj: R: C THE SUMMER GO BYE
  8443.  
  8444. Message CC'd to:
  8445.      GRANT ELLSWORTH
  8446.      MIKE SZYMANSKI
  8447.      MARK TELLIER
  8448.  
  8449. Grant,
  8450.  
  8451.      The program is only 71 lines.
  8452.  
  8453.      Here is the whole program.  It does not do what I expected it to do.
  8454. There is no way to end out of it.  Also, it only executes the default line
  8455. of the switch statement.
  8456.  
  8457.      NOTE, all of the ANSI Esc characters were changed to ASCII 255, which
  8458. is a NULL character.
  8459.  
  8460. /* This is a program to make a box. */
  8461.  
  8462. main()
  8463. {
  8464. char choice;  /* */
  8465.    box();      /* call box */
  8466.    getchar(choice);
  8467.    do {
  8468.         process(choice);
  8469.         box();      /* call box */
  8470.         getchar(choice);
  8471.       } while (choice != 'X' && choice != 'x' && choice != 2);
  8472.  
  8473. }  /* end main */
  8474.  
  8475. process(choice)   /* main loop procedure */
  8476. char choice;
  8477. {
  8478. char pause;
  8479.  
  8480.       switch (choice)
  8481.        {
  8482.          case 'a'  : printf([05;22[K erase to end of line");
  8483.                    break;
  8484.          case 'b'  : printf([09;02[1K erase to bigin to cursor");
  8485.                    break;
  8486.          case 'c'  : printf([11;01[2K Erase line");
  8487.                    break;
  8488.          case 'd'  : printf([13:02[J erase from cursor to end of scr");
  8489.                    break;
  8490.          case 'e'  : printf("The value is between 58and 8\n");
  8491.                    break;
  8492.          case 'f'  : printf("The value is between 58and 8\n");
  8493.                    break;
  8494.          case 'g'  : printf("The value is eleven\n");
  8495.                    break;
  8496.          default : printf([24;10HIt is one of the undefined values\n");
  8497.                    break;
  8498.        }    /* end of switch */
  8499.  
  8500.     getchar(pause);
  8501.  
  8502. }  /* end process */
  8503.  
  8504. box()   /* Draw the main box procedure */
  8505. {
  8506.    int count,lcount;  /* define variables */
  8507.  
  8508.    printf([0;37;40[2[31mZ");
  8509.    count = 0;
  8510.    for(count = 0;count < 78;count = count + 1) printf("D");
  8511.    printf("?");
  8512.  
  8513.    /* The middle of the box. */
  8514.    for(lcount = 2;lcount < 20;lcount = lcount + 1)
  8515.       {  count = 1;
  8516.          printf([31[%d;%dH3",lcount,count);
  8517.          count = 80;
  8518.          printf([31[%d;%dH3",lcount,count);
  8519.       }; /* end for */
  8520.  
  8521.    /* The bottom half of the box. */
  8522.    printf([20;1H@");
  8523.    count = 0;
  8524.    for(count = 0;count < 78;count = count + 1)  printf("D");
  8525.    printf("Y");
  8526.    printf([05;24H By Patrick Lemirande");
  8527.    printf([07;24H This is a test");
  8528.  
  8529. }  /* end box */
  8530. ---------------
  8531. ** Current thread: C THE SUMMER GO BYE
  8532.  
  8533. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCJ3053 Date: 07/08/89
  8534. From: MIKE SZYMANSKI                                        Time: 03:50 pm
  8535.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 110 times)
  8536. Subj: R: C THE SUMMER GO BYE
  8537.  
  8538. Patrick, I did not intend to imply that you didn't understand the
  8539. pointer's use.  As a matter of fact, quite often I define character
  8540. variables as pointers a standard ideom i've developed as a general
  8541. approach to re-usable functions.  In this way I can pass processing
  8542. fucntions a char or a string and still perform the switch, provided that
  8543. the pointer is set to the address in the string that I am concerned about.
  8544. Still, the use of            case 'A': should work !
  8545. ---------------
  8546. ** Current thread: C THE SUMMER GO BYE
  8547.  
  8548. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCJ3288 Date: 07/08/89
  8549. From: MIKE SZYMANSKI                                        Time: 03:54 pm
  8550.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 109 times)
  8551. Subj: R: C THE SUMMER GO BYE
  8552.  
  8553. Patrick, the problem, as I see it is that the getchar() function can't be
  8554. used to read a single character, since a return is needed to complete the
  8555. input operation... I suggest you use another function such as getch or
  8556. something.
  8557. ---------------
  8558. ** Current thread: C THE SUMMER GO BYE
  8559.  
  8560. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCK1109 Date: 07/08/89
  8561. From: PATRICK LEMIRANDE                                     Time: 04:18 pm
  8562.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 111 times)
  8563. Subj: R: C THE SUMMER GO BYE
  8564.  
  8565. Mike,
  8566. RE: I did not intend to imply that you didn't understand the pointer's
  8567. use.
  8568.  
  8569.       that is ok.  I just figured them out a few days ago, and wanted to
  8570. boast a little.   As to most of your message, I have not figured that much
  8571. out yet.
  8572.  
  8573.      I have read through chapter ten of my tutor.
  8574.  
  8575. Patrick
  8576. ---------------
  8577. ** Current thread: C THE SUMMER GO BYE
  8578.  
  8579. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCK1259 Date: 07/08/89
  8580. From: PATRICK LEMIRANDE                                     Time: 04:20 pm
  8581.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 116 times)
  8582. Subj: R: C THE SUMMER GO BYE
  8583.  
  8584. Mike,
  8585.  
  8586. RE: I suggest you use another function such as getch ...
  8587.  
  8588.      that is too bad because my header library does not include the getch
  8589. function.
  8590.  
  8591.      Question:  Can I get the header files from Turbo C and use them with
  8592. my Lets C compiler?
  8593.  
  8594. Patrick
  8595. ---------------
  8596. ** Current thread: C THE SUMMER GO BYE
  8597.  
  8598. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCL1120 Date: 07/08/89
  8599. From: MIKE SZYMANSKI                                        Time: 05:18 pm
  8600.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 108 times)
  8601. Subj: R: C THE SUMMER GO BYE
  8602.  
  8603. Patrick, I don't think Let's C will let you use TC's getch() function.
  8604. I'll check that out on my verison of Let's C that I have at home
  8605. somewhere.  I haven't used Mark Williams' products since I read what I
  8606. considered to be rather anti-social comments from him in an interview just
  8607. before the ANSI 'C' subcommittee started meeting.  However, to get back to
  8608. your immediate problem, I seem to remember that a function like getcnb()
  8609. provided single character receipt, you might try that if I am correct
  8610. about it's existence in the Let's C library.
  8611. ---------------
  8612. ** Current thread: C THE SUMMER GO BYE
  8613.  
  8614. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCQ1709 Date: 07/08/89
  8615. From: PATRICK LEMIRANDE                                     Time: 09:28 pm
  8616.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 105 times)
  8617. Subj: R: C THE SUMMER GO BYE
  8618.  
  8619. Mike,
  8620.  
  8621. RE: solving some of my challenges.
  8622.  
  8623.      First, I needed to assing the getchar function like this:
  8624.  
  8625.           choice = getchar();
  8626.  
  8627.      Second, DOS sends three things to the program, the character, a
  8628. carriage return, and line feed.  The program acts on the character, strips
  8629. the carriage return, then acts on the line feed.  I needed to write the
  8630. code to check for the line feed and do nothing with it.
  8631.  
  8632.      Third, I ended up using an int variable for the case.  I don't know
  8633. why the literal did not work, but I could not get the char variable to
  8634. match the literal.
  8635.  
  8636.           char ch;
  8637.           int  number
  8638.           number = ch;
  8639.           switch (number)
  8640.              case 97 printf("......");   /* case 'a' */
  8641.  
  8642.      Fourth, the obvious.
  8643.  
  8644.           #include <stdio.h);
  8645.  
  8646.      Thanks for taking the time to look at my code.  Having lots of fun.
  8647.  
  8648. Patrick
  8649. ---------------
  8650. ** Current thread: C THE SUMMER GO BYE
  8651.  
  8652. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCQ2081 Date: 07/08/89
  8653. From: GRANT ELLSWORTH (Leader)                              Time: 09:34 pm
  8654.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 103 times)
  8655. Subj: R: C THE SUMMER GO BYE
  8656.  
  8657. Patrick, I've d/l'd and dinkered with your program fragment ....
  8658.  
  8659. Here are a few of comments:
  8660.  
  8661. 1.  re: getchar() ...
  8662.  
  8663.     I've checked out 3 other C compilers for the rules on the
  8664.     getchar() funciton .... and all do it the same way (using
  8665.     your code as the model) ...
  8666.  
  8667.     choice = getchar(); /* not getchar(choice) */
  8668.  
  8669.     Since this is 3 compilers and the function has an ANSI form,
  8670.     I think the MW Let's C you are using should be doing it the
  8671.     same way ---- check out the function prototype in your Let's
  8672.     C compiler .H header files (might be in something called like
  8673.     stdio.h)
  8674.  
  8675. 2.  more re: getchar() ... in the C compilers I checked out, the
  8676.     function getchar() returns an integer
  8677.  
  8678.     So, to effectively cause getchar() to return a character, you
  8679.     would have to use "typecasting" if your compiler supports it
  8680.     --- e.g.
  8681.  
  8682.     choice = (char) getchar();
  8683.  
  8684.     Also, the definitions I've read indicate that it gets the
  8685.     character from "stdin" ... and you may be having to press
  8686.     the <cr> key to get the character accepted by the program;
  8687.     if this is the case, then there is a <cr> waiting in the
  8688.     input stream ... and your " getchar(pause) - which should
  8689.     be : pause = getchar(); " will get the <cr> before you are
  8690.     able to strike a key
  8691.  
  8692. 3.  Don't you have to use some standard "includes" in the Let's C
  8693.     C programs ... e.g. #include <stdio.h>
  8694.  
  8695.     These "#include <xxxx.h>" statements have the prototype defi-
  8696.     nitions of the functions to which your program must conform in
  8697.     the function calls
  8698.  
  8699. Grant
  8700. ---------------
  8701. ** Current thread: C THE SUMMER GO BYE
  8702.  
  8703. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCQ3231 Date: 07/08/89
  8704. From: PATRICK LEMIRANDE                                     Time: 09:53 pm
  8705.   To: GRANT ELLSWORTH (Rcvd)                                (Read 101 times)
  8706. Subj: R: C THE SUMMER GO BYE
  8707.  
  8708. Grant,
  8709.  
  8710.      thanks a bundle.  I am sure you have read my message where I solved
  8711. most of those challenges.
  8712.  
  8713.      I will play with your advice on getting a character from the getchar
  8714. function.  My debug statements indicated that the results was an interger,
  8715. but I had no idea why until you pointed it out.
  8716.  
  8717.      Writing in C is a lot of work, and at the same time it is getting to
  8718. be a lot of fun.  I am learning more about the PC in the process.
  8719.  
  8720.      Funny thing, if I had used another language I could have had this
  8721. program singing by now, but I will get thing thing running if it takes me
  8722. all summer.   (Looing at the calendar, I had better get going.)
  8723.  
  8724. Patrick
  8725. ---------------
  8726. ** Current thread: C THE SUMMER GO BYE
  8727.  
  8728. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDI1659 Date: 07/09/89
  8729. From: MIKE SZYMANSKI                                        Time: 02:27 pm
  8730.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 106 times)
  8731. Subj: R: C THE SUMMER GO BYE
  8732.  
  8733. Patrick, any time!
  8734. ---------------
  8735. ** Current thread: C THE SUMMER GO BYE
  8736.  
  8737. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDM2722 Date: 07/09/89
  8738. From: GLEN THOMPSON                                         Time: 06:45 pm
  8739.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 104 times)
  8740. Subj: R: C THE SUMMER GO BYE
  8741.  
  8742. Patrick,
  8743.  
  8744. On case statements I suggest the following formatting:
  8745.  
  8746.      case 'a':
  8747.                 /* do the 'a' stuff  */
  8748.                 break;
  8749.      case 'b':
  8750.                 /* do the 'b' stuff  */
  8751.  
  8752. This has two advantages - most errors will report better indications if
  8753. the case part is wrong since it's on a separate line and it's easier to
  8754. insert a line when you need to change the program.
  8755.  
  8756. However your basic problem is the arg to getchar - its defined as type
  8757. void.  your statement should be:  choice = getchar();
  8758.  
  8759. glen
  8760. ---------------
  8761. ** Current thread: C THE SUMMER GO BYE
  8762.  
  8763. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDN2334 Date: 07/09/89
  8764. From: PATRICK LEMIRANDE                                     Time: 07:38 pm
  8765.   To: GRANT ELLSWORTH (Rcvd)                                (Read 104 times)
  8766. Subj: R: C THE SUMMER GO BYE
  8767.  
  8768. Grant,
  8769.  
  8770. RE: choice = (char) getchar();
  8771.  
  8772.      that seems to work in getting a character.  I have no idea why or
  8773. what it does though.   I will also have to check and see what happens to
  8774. the line feed when I use this format.
  8775.  
  8776.      Thanks for answering my question.
  8777.  
  8778. Patrick
  8779. ---------------
  8780. ** Current thread: C THE SUMMER GO BYE
  8781.  
  8782. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDN2692 Date: 07/09/89
  8783. From: PATRICK LEMIRANDE                                     Time: 07:44 pm
  8784.   To: GLEN THOMPSON (Rcvd)                                  (Read 107 times)
  8785. Subj: R: C THE SUMMER GO BYE
  8786.  
  8787. Glen,
  8788.  
  8789. RE: On case statements I suggest the following format.
  8790.  
  8791.      thanks, I can clearly see the advantages and will take on that style.
  8792. I am always willing to hear ideas on how to write clear code, even if I
  8793. don't always agree.
  8794.  
  8795. RE: choice = getchar();
  8796.  
  8797.      I gotta go, I got some code'n to do.
  8798.  
  8799. Patrick
  8800. ---------------
  8801. ** Current thread: C THE SUMMER GO BYE
  8802.  
  8803. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BF11463 Date: 07/11/89
  8804. From: PATRICK LEMIRANDE                                     Time: 12:24 am
  8805.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 113 times)
  8806. Subj: R: C THE SUMMER GO BYE
  8807.  
  8808. Mike,
  8809.  
  8810.      quick question:
  8811.  
  8812.  
  8813.      What is the difference in execution between a 'do while' and a
  8814. 'while'?  They look the same to me.
  8815.  
  8816.           while (count == 6)  { sub(); }
  8817.  
  8818.           do  { sub(); }  while (count == 6);
  8819.  
  8820. Patrick
  8821. ---------------
  8822. ** Current thread: C THE SUMMER GO BYE
  8823.  
  8824. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BFE2151 Date: 07/11/89
  8825. From: MIKE SZYMANSKI                                        Time: 10:35 am
  8826.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 114 times)
  8827. Subj: R: C THE SUMMER GO BYE
  8828.  
  8829. Patrick, the difference between the do...while and the while is that the
  8830. do...while is executed at least once, while the initial (and all
  8831. subsequent) run of the while is determined by the test condition (count ==
  8832. 6).  I almost always use the while loop since it checks for validity
  8833. before running the loop.
  8834. ---------------
  8835. ** Current thread: C THE SUMMER GO BYE
  8836.  
  8837. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BFI3331 Date: 07/11/89
  8838. From: PATRICK LEMIRANDE                                     Time: 02:55 pm
  8839.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 113 times)
  8840. Subj: R: C THE SUMMER GO BYE
  8841.  
  8842. Mike,
  8843.  
  8844. RE: while vs do while.
  8845.  
  8846.      Oh I see.  I think my program needs a while loop also.  In fact, I
  8847. can't even think of a reason for a do while loop.  Maybe someday.
  8848.  
  8849. Patrick
  8850. ---------------
  8851. ** Current thread: C THE SUMMER GO BYE
  8852.  
  8853. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLJ0866 Date: 07/17/89
  8854. From: PATRICK LEMIRANDE                                     Time: 03:14 pm
  8855.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 108 times)
  8856. Subj: R: C THE SUMMER GO BYE
  8857.  
  8858. Mike,
  8859.  
  8860.      I am attempting to send control commands to my Panasonic printer.  I
  8861. can get some commands to work, and some do nothing.  What works??
  8862.  
  8863.      Basic commands like:   ESC+E    which sets emphasis printing,
  8864.                     and :   ESC+F    which releases emphasis printing.
  8865.                     and :   ESC+p+1  which sets proportional spacing.
  8866.                     and :   ESC+w+n  which sets cpi based on the value of
  8867.                                       n can be (0, 1, 2, 3, or 4).
  8868.  
  8869.      What doesn't work:
  8870.  
  8871.      Variable commands like:  ESC+3+n    which sets line feed to n/216 in
  8872.                                          n can be any variable 0>n>255.
  8873.      commands like:         ESC+SI       which sets compressed printing.
  8874.                                          SI has a decimal value of 14.
  8875.  
  8876.  
  8877.      Here is the code I now use:
  8878. proc()
  8879. {
  8880.    char s[6],n[4];
  8881.    scanf("%s",n);
  8882.    setprint(n);
  8883.    setprint(code);
  8884. }
  8885. setpring(code)
  8886. char code[6];
  8887. {
  8888.     char r;
  8889.    FILE *printer;
  8890.    printer = fopen("PRN","w");
  8891.    fprintf(printer,"
  8892. ---------------
  8893. ** Current thread: C THE SUMMER GO BYE
  8894.  
  8895. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLJ1640 Date: 07/17/89
  8896. From: PATRICK LEMIRANDE                                     Time: 03:27 pm
  8897.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 106 times)
  8898. Subj: R: C THE SUMMER GO BYE
  8899.  
  8900. Mike,
  8901.  
  8902.      looks like the ESC code in my C code aborted the upload.  Here it is
  8903. again, with the typos corrected:
  8904.  
  8905. proc()
  8906. {
  8907.    char n[4];
  8908.    scanf("%s",n);
  8909.    setprint(n);
  8910. }
  8911. setprint(code)
  8912. char code[6];
  8913. {
  8914.     char r;
  8915.    FILE *printer;
  8916.    printer = fopen("PRN","w");
  8917.    fprintf(printer,"ESC%s\n Well this is a test\n",code);
  8918.    printf("The string is ---> %s  ",code);
  8919.    fclose(printer);
  8920. }
  8921.  
  8922.      Thanks
  8923.  
  8924. Patrick
  8925. ---------------
  8926. ** Current thread: C THE SUMMER GO BYE
  8927.  
  8928. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQR3468 Date: 07/21/89
  8929. From: ROBERT BALSOVER                                       Time: 10:57 pm
  8930.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 106 times)
  8931. Subj: R: C THE SUMMER GO BYE
  8932.  
  8933. Patrick,
  8934. I have used a do loop but only when a function that starts a loop is
  8935. different than the function that continues the loop. Here is a example
  8936. from one library I use:
  8937. if ((status = d4seek(ticket->tic_num)) == 0)
  8938. {
  8939.     do {
  8940.         if (ticket->deleted == '*') break;
  8941.         statement
  8942.         statement
  8943.         etc., etc., etc.
  8944.     } while (d4skip(1L) == 0);
  8945. }
  8946. The d4seek() locates the first key, if I just used it in a while loop
  8947. I would continue to get the same ticket. d4skip() gets the next Dbase
  8948. record in order of the index file that I use, so it is the correct
  8949. statement to use in a continuing fashion.
  8950. This sort of loop doesn't happen often.
  8951. Bob
  8952. ---------------
  8953. ** Current thread: C THE SUMMER GO BYE
  8954.  
  8955. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRL3497 Date: 07/22/89
  8956. From: PATRICK LEMIRANDE                                     Time: 05:58 pm
  8957.   To: ROBERT BALSOVER (Rcvd)                                (Read 103 times)
  8958. Subj: R: C THE SUMMER GO BYE
  8959.  
  8960. Robert,
  8961. RE: This sort of loop doesn't happen often.
  8962.  
  8963.      I sort of see what you are talking about.   I just don't see why it
  8964. would continue to get the same ticket in a while loop.  Should work
  8965. exactly the same as far as execution goes.
  8966.  
  8967.      MY problem is that when I come out of a while loop to another while
  8968. loop:  I get a undefined value (my debug statement) the first time, then
  8969. it will work fine.   This is the same while loop as the an other one that
  8970. works fine. ??????  Got me stumped.
  8971.  
  8972.      To clarify this, picture a menu driven program where each menu is a
  8973. while loop inside of a while loop.  The main one works fine, and the second
  8974. one in has a bug only when exiting from the third.
  8975.  
  8976. Patrick
  8977. ---------------
  8978. ** Current thread: C THE SUMMER GO BYE
  8979.  
  8980. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRM1563 Date: 07/22/89
  8981. From: ROBERT BALSOVER                                       Time: 06:26 pm
  8982.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 107 times)
  8983. Subj: R: C THE SUMMER GO BYE
  8984.  
  8985. Patrick,
  8986. As far as my example goes, d4seek(ticket->tic_num) retrieves the FIRST
  8987. record that matches the key I give it, it always will retrieve that same
  8988. record and not the next one in line that matches that key.  The next
  8989. statement 'd4skip(1L)' does retrieve the next ... etc.  Both the
  8990. first and all others after it need to be processed in the same manner so:
  8991. d4seek(ticket->tic_num)
  8992. do {
  8993.    process
  8994.    process
  8995.    ... etc.
  8996. } while (d4skip(1L) == 0);
  8997. the d4seek and the d4skip recieve the same treatment if you follow thru
  8998. the loop.
  8999. .
  9000. As far as your example goes I think I have a vague idea of what your
  9001. getting at.  The inner most loop is using a recieved value to determine
  9002. when to break, but the next one out doesn't break?  Are you trying to
  9003. use break to get out of two while loops?  If so, it won't work.
  9004. Also of that is the case I'm going to play the devil's advocate and
  9005. suggest the goto statement, but there might be other ways also.
  9006. Would you be willing to post a code fragment?   If I could see it,
  9007. I could give a better answer.
  9008. Bob
  9009. ---------------
  9010. ** Current thread: C THE SUMMER GO BYE
  9011.  
  9012. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRP0513 Date: 07/22/89
  9013. From: PATRICK LEMIRANDE                                     Time: 08:08 pm
  9014.   To: ROBERT BALSOVER (Rcvd)                                (Read 103 times)
  9015. Subj: R: C THE SUMMER GO BYE
  9016.  
  9017. Robert,
  9018.  
  9019. RE: code fragment of my buggie while loop.
  9020.  
  9021.      No that would not be a good idea.  The while loop works, just not
  9022. like it should.  There must be something about the way it interacts with
  9023. the rest of the program.  What I would have to do is list the whole
  9024. program and it is getting lenghtly.
  9025.  
  9026.      The reasion I say that is because loop one and loop two are exactly
  9027. the same code.  One works, and two does not work.
  9028.  
  9029. Each one loops while choice != 'Q' && *done != 'X'.  Each calls a function
  9030. that uses getchar().  And each calls a case statement function.  choice is
  9031. a local variable and done is a global pointer to the local address of
  9032. choice in the main loop.   I hope this is clear.
  9033.  
  9034.  
  9035. Patrick
  9036. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9037.  
  9038. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BBR0865 Date: 07/07/89
  9039. From: RICHARD AKESON                                        Time: 10:14 pm
  9040.   To: ALL                                                   (Read 109 times)
  9041. Subj: C++ FUNDAMENTALS
  9042.  
  9043. This is REAL fundamental.  How do you SAY "C++"?
  9044.  
  9045. "See-Plus-Plus" seems like a tongue twister.  I suspect that programmers
  9046. may have given it a "shorthand" name in the same manner that
  9047. "exclamation-mark" may be verbalized as "Bang" and "Period" as "Dot".
  9048.  
  9049. -RCA-
  9050. ---------------
  9051.  
  9052. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BCR2764 Date: 07/08/89
  9053. From: GRANT ELLSWORTH (Leader)                              Time: 10:46 pm
  9054.   To: PAT SHEA (Rcvd)                                       (Read 107 times)
  9055. Subj: CTRL-BRK, ETC..
  9056.  
  9057. Pat, I finally located the Keyboard I/O programs which I finished about a
  9058. year ago as follow up to those ancient discussions we were having.  I
  9059. included the control-break trapper which you uploaded into a msg here.
  9060. File is named GETKBD.ZIP.  Some programs in it also trap ^@ and <alt-03>
  9061. which will break a program when it does dos i/o to the console.
  9062.  
  9063. Regards, "Indiana Jones of the ^C/^Brk Circuit"  (grant)
  9064. ---------------
  9065. Following thread
  9066.  
  9067. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BF42457 Date: 07/11/89
  9068. From: PAT SHEA                                              Time: 04:40 am
  9069.   To: GRANT ELLSWORTH (Rcvd)                                (Read 116 times)
  9070. Subj: R: CTRL-BRK, ETC..
  9071.  
  9072. grant :
  9073.  
  9074. 'sorry for the delay in the reply - i've been off holidaying...
  9075.  
  9076. i'll d/l getkb and take a look.  at this point in time, i really don't
  9077. think that there are too many people around that have studied this one
  9078. quite as much as you have......
  9079.  
  9080. best regards <and BOY! it's HOT>
  9081. pats.
  9082. ---------------
  9083. ** Current thread: CTRL-BRK, ETC..
  9084.  
  9085. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BFL3039 Date: 07/11/89
  9086. From: GRANT ELLSWORTH (Leader)                              Time: 05:50 pm
  9087.   To: PAT SHEA (Rcvd)                                       (Read 112 times)
  9088. Subj: R: CTRL-BRK, ETC..
  9089.  
  9090. Pat, apparently the doggone thing <getkbd> is popular ... I noted yes-
  9091. terday that 49 d/l's were requested ... and that was just in 2 days since
  9092. I uploaded it.  Well, maybe there are some real scholars among us who
  9093. are looking at it and can tell me where I was really off the wall!
  9094.  
  9095. And it sure is HOT here in the mid-atlan area .... like an unfogiving
  9096. steam bath with therrmal inversion to help out!  Regards, Grant
  9097. ---------------
  9098. ** Current thread: CTRL-BRK, ETC..
  9099.  
  9100. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BG40109 Date: 07/12/89
  9101. From: PAT SHEA                                              Time: 04:01 am
  9102.   To: GRANT ELLSWORTH (Rcvd)                                (Read 115 times)
  9103. Subj: R: CTRL-BRK, ETC..
  9104.  
  9105. ya' know grant...
  9106. since you got started on this one a little over a year ago, it's been
  9107. riding in the back of my mind as i 'read the mail' from whereever.  it
  9108. seems that some folks allude to the problem, but never addres it directly.
  9109. it's been discussed on the ms forum on ci$, and you recall that file that
  9110. i u/l'd from there that REALLY didn't solve the problem.... and that's my
  9111. access to dos-related problems/solutions.  the only other place that i can
  9112. usually get correct answers to questions is via usenet, but that's
  9113. strictly C-lang related stuff <if it don't run on a Cray.... etc>.
  9114. interesting!
  9115.  
  9116. also :
  9117.  
  9118. 'just noted that you really are not that far from me <bethlehem, pa> :
  9119. we're enjoying the same heat wave.
  9120.  
  9121. best regards,
  9122. pats.
  9123. ---------------
  9124. ** Current thread: CTRL-BRK, ETC..
  9125.  
  9126. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BGE0778 Date: 07/12/89
  9127. From: GRANT ELLSWORTH (Leader)                              Time: 10:12 am
  9128.   To: PAT SHEA (Rcvd)                                       (Read 112 times)
  9129. Subj: R: CTRL-BRK, ETC..
  9130.  
  9131. Any comments on my little essay in code?  grant
  9132. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9133.  
  9134. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDP2198 Date: 07/09/89
  9135. From: MICHAEL MCCLUNE                                       Time: 08:36 pm
  9136.   To: ALL                                                   (Read 105 times)
  9137. Subj: ASSERTION
  9138.  
  9139. In QC2 I used the make menu and then the rebuild all choice to
  9140. rebuild a program Ihave been working on. QC compiled each module
  9141. and then began linking the modules. At the top of the screen, actually
  9142. over the menu bar appeared the message Assertion Failed file iexeio
  9143. line 250. Can anyone tell me what that was all about? Also after that
  9144. had happened I could no longer use break  points or any of the
  9145. debugger functions in QC2. However the program seemed to run OK.
  9146. I finally ended up deleting all but the source files and then
  9147. built the program again. No Assertion message this time.
  9148. thanks
  9149. Mike
  9150. ---------------
  9151.  
  9152. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BDR1441 Date: 07/09/89
  9153. From: TOM NOWALIS                                           Time: 10:24 pm
  9154.   To: ALL                                                   (Read 113 times)
  9155. Subj: SCANF PROBLEM
  9156.  
  9157. I am writing a program that contains a structure. One of the elements is a
  9158. float variable "amount". When I use scanf for this variable the program
  9159. abmnormally terminates and prints a message "scanf: floating point formats
  9160. not linked. This happens when I try to run the program. My code is as
  9161. follows:  printf("enter invoice amount > ");
  9162.            scanf("%f", &addr_info[i].amount);
  9163.            printf(" \n");
  9164. Does anyone have any suggestions on what is wrong?
  9165. ---------------
  9166.  
  9167. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BEK2262 Date: 07/10/89
  9168. From: RON FOX                                               Time: 04:37 pm
  9169.   To: ALL                                                   (Read 123 times)
  9170. Subj: WINDOWING SOFTWARE
  9171.  
  9172. I am looking for a good windowing package and would appreciate some
  9173. suggestions.  I have tried C-Worthy and it seems pretty good.  It does
  9174. take alot of memory though.  Iwould also like some information of Vermont
  9175. Views, previously Windows For Data.
  9176. I need virtual windows of at least 32K, ability to configure to various
  9177. display environments and colors on the fly.  C-Worthy does the virtual
  9178. windows but, at first glance, is not easy to reconfigure on the fly.
  9179. Thanks...
  9180. Ron
  9181. ---------------
  9182. Following thread
  9183.  
  9184. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BEQ3147 Date: 07/10/89
  9185. From: JOHN HEIM                                             Time: 09:52 pm
  9186.   To: RON FOX (Rcvd)                                        (Read 119 times)
  9187. Subj: R: WINDOWING SOFTWARE
  9188.  
  9189. Ron,
  9190.  
  9191. I used Windows for Data quite a bit in about a year ago.  I didn't like it
  9192. much.  I didn't like the programmer interface (ie function names didn't
  9193. make sense and doc wasn't the greatest) and table function were pretty
  9194. bad.  I wold say strait form processing (with individual fields as opposed
  9195. to the rows and columns you have with tables) is ok in WFD.
  9196.  
  9197. Also, WFD would lock up my QuickC compiler.  I had to revert to EMACS for
  9198. editing and I compiled at DOS command level.  I was using Windows for Data
  9199. not Vermont Windows (is that what their new product is called?) and QC
  9200. 1.1 (I think).  I can't really say it was WFD or QC causing the problem I
  9201. but I do know they didn't work together.
  9202.  
  9203. John
  9204. ---------------
  9205. ** Current thread: WINDOWING SOFTWARE
  9206.  
  9207. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BFE1924 Date: 07/11/89
  9208. From: MIKE SZYMANSKI                                        Time: 10:32 am
  9209.   To: RON FOX (Rcvd)                                        (Read 118 times)
  9210. Subj: R: WINDOWING SOFTWARE
  9211.  
  9212. Ron,  I've been messing with MetaWindows by MetaGraphics.  It's publicized
  9213. as the 'defacto X-Windows standard' for PC systems under DOS.  The package
  9214. is very complete and most of the functions are written pretty tight.  The
  9215. package offers run-type graphic and mouse support for around 60+ display
  9216. adapters.  They offer both a royalty free resident driver (buggy as heck
  9217. though), and a licensed version (linkable library).  I've used it so far
  9218. to do virtual imaging and multi-port imaging in EMS.  As a disclaimer for
  9219. myself though, given my projects stringent speed requirements and the fact
  9220. that MW is apparently being guided by Locus Corp (somewhat non-compatible
  9221. in the X world) we'll probably wind up writting our own interface down the
  9222. line somewhere.  Still the package is pretty solid, and gets you up and
  9223. running very quickly (good source examples and BBS support too!).
  9224. ---------------
  9225. ** Current thread: WINDOWING SOFTWARE
  9226.  
  9227. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BGQ3595 Date: 07/12/89
  9228. From: RON FOX                                               Time: 09:59 pm
  9229.   To: JOHN HEIM (Rcvd)                                      (Read 116 times)
  9230. Subj: R: WINDOWING SOFTWARE
  9231.  
  9232. John
  9233. Vermont Views is a combination of Windows for Data and Windows for C.  I
  9234. talked to one of the developers a couple days ago.  They don't have a demo
  9235. but he said that he would send me something.  Also, I read the review in
  9236. Byte, October 1987.  None of the packages seemed that good.
  9237. I am kind of predisposed to stay with C-Worthy, it is just that the 1000
  9238. pages of documentation is overwhelming and you have to printout the source
  9239. code to find out how to do anything.
  9240. Thankx
  9241. Ron
  9242. ---------------
  9243. ** Current thread: WINDOWING SOFTWARE
  9244.  
  9245. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BGR0121 Date: 07/12/89
  9246. From: RON FOX                                               Time: 10:02 pm
  9247.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 114 times)
  9248. Subj: R: WINDOWING SOFTWARE
  9249.  
  9250. Mike
  9251. Thanks for the info.
  9252. Ron
  9253. ---------------
  9254. ** Current thread: WINDOWING SOFTWARE
  9255.  
  9256. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BH12488 Date: 07/13/89
  9257. From: JOHN HEIM                                             Time: 12:41 am
  9258.   To: RON FOX (Rcvd)                                        (Read 117 times)
  9259. Subj: R: WINDOWING SOFTWARE
  9260.  
  9261. Ron
  9262.  
  9263. The old Windows for Data product required Windows for C so they haven't
  9264. really changed anything by combining them.
  9265.  
  9266. John
  9267. ---------------
  9268. ** Current thread: WINDOWING SOFTWARE
  9269.  
  9270. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BHA2096 Date: 07/13/89
  9271. From: VICTOR DURA                                           Time: 06:34 am
  9272.   To: RON FOX (Rcvd)                                        (Read 116 times)
  9273. Subj: R: WINDOWING SOFTWARE
  9274.  
  9275.   Ron,
  9276.   Check out the shareware libs by HardWood Software Associates in the
  9277. Mahoney collection. Download HSA_TEXT.ZIP. There are also 3 or
  9278. 4 other files beginning with "HSA". These versions of the libraries
  9279. are not there most recent, they are about a year or two old. The
  9280. most recent versions are available on CI$ in the IBMAPP forum library.
  9281. I don't recall the exact file name or library, but you can find it
  9282. by using IBMFF to scan for the [75026,3604] account number which is
  9283. the author's.
  9284.   The HSA libs have three seperate modules: text, windows, and graphics.
  9285. The text and window libs are $20 each and the graphic lib is $25. The
  9286. window lib requires the the text lib. As I said, the files in Mahoney
  9287. are not the most recent versions, but they are full function and well
  9288. documented. I tried text and window, and liked them so much I bought
  9289. the most recent versions which included even more features and
  9290. documentation. They are very easy to use, although I don't know if
  9291. they'll suit your needs since I don't know what you mean by "virtual
  9292. windows of at least 32k". They do however allow you to easly change
  9293. color, etc. Hope this helps
  9294.  ...Vic Dura
  9295. ---------------
  9296. ** Current thread: WINDOWING SOFTWARE
  9297.  
  9298. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BHF0500 Date: 07/13/89
  9299. From: MIKE SZYMANSKI                                        Time: 11:08 am
  9300.   To: RON FOX (Rcvd)                                        (Read 114 times)
  9301. Subj: R: WINDOWING SOFTWARE
  9302.  
  9303. ron, no problem.  Good luck.
  9304. ---------------
  9305. ** Current thread: WINDOWING SOFTWARE
  9306.  
  9307. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BI12887 Date: 07/14/89
  9308. From: RON FOX                                               Time: 01:48 am
  9309.   To: VICTOR DURA (Rcvd)                                    (Read 112 times)
  9310. Subj: R: WINDOWING SOFTWARE
  9311.  
  9312. Vic
  9313. The virtual window that I need is at least 255 by 255 characters with only
  9314. a section 80 by 20 displayed at any given time.  255 by 255 is the total
  9315. size of the picture.  The user has to be able to cursor around with the
  9316. displayed section automatically scrolling in any direction as required.  I
  9317. also need to be able to generate a help window that is context sensitive
  9318. relative to the cursor position in the virtual window not the displayed
  9319. portion.
  9320. I tried some shareware windowing product a coul\ple of years ago and was
  9321. pretty disappointed and wrote my own.  My needs then, though, were pretty
  9322. small and it was easy to do.  With all of the variations in hardware on
  9323. computers today, it is no longer easy to write my own.
  9324. Thanks for the info
  9325. Ron
  9326. ---------------
  9327. ** Current thread: WINDOWING SOFTWARE
  9328.  
  9329. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BIA3221 Date: 07/14/89
  9330. From: TOM FRANK                                             Time: 06:53 am
  9331.   To: RON FOX (Rcvd)                                        (Read 110 times)
  9332. Subj: R: WINDOWING SOFTWARE
  9333.  
  9334. Ron,
  9335.  
  9336. Vermont Views added a capability for "buffered" windows in their new
  9337. version (was not in the old Windows for Data product).  I have not used it
  9338. for anything as large as you need, but it does work well. Assuming you
  9339. have enough memory (and you should) for the underlying buffer, it should
  9340. handle it fine.
  9341.  
  9342. Note: VV is a reasonable new product (read major rewrite of older product)
  9343. and has had some minor bugs.  The latest version is 1.1. VV has a support
  9344. BBS which has access to tech support as well as minor bug fixes posted.
  9345. If the app was critical enough (and mine was - at least to me), I would
  9346. recommend buying the source code. The package is not cheap but works very
  9347. well. Also, they have versions for several Unix flavors as well as the
  9348. VAX VMS.
  9349.  
  9350. Tom
  9351. ---------------
  9352. ** Current thread: WINDOWING SOFTWARE
  9353.  
  9354. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BID0057 Date: 07/14/89
  9355. From: GEORGE KOFMAN                                         Time: 09:00 am
  9356.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 109 times)
  9357. Subj: R: WINDOWING SOFTWARE
  9358.  
  9359. Another Meta user? I remember way back when (3 yrs ago+), when they were
  9360. still in beta, and I was using their stuff (read: young and stupid).
  9361. That was the only time I've used beta-release software for a serious
  9362. project. Last time, too.
  9363. But Meta is pretty darn good. I didn't realize they were the X-window
  9364. defacto std. on PCs, though.
  9365.  
  9366. Geo.
  9367. ---------------
  9368. ** Current thread: WINDOWING SOFTWARE
  9369.  
  9370. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BIH2601 Date: 07/14/89
  9371. From: MIKE SZYMANSKI                                        Time: 01:43 pm
  9372.   To: GEORGE KOFMAN (Rcvd)                                  (Read 109 times)
  9373. Subj: R: WINDOWING SOFTWARE
  9374.  
  9375. George,  I agree about the use of beta stuff for projects.  Meta just came
  9376. out with their FontWindow package and we have the beta version.  Lack of
  9377. docs and stuff keeps us from using is to the extent that we want but it's
  9378. a good package.  About the 'defacto' thing:  Apparently Locus corp.
  9379. either commisioned or 'is allowing'  Meta to develope the PC version of X
  9380. under DOS.  The fuctions and stuff are a close as you can get with what
  9381. DOS provides.  Unfortunatly for MW, Locus Corp is not following the true
  9382. direction of X.  I guess their server is not compatible with DEC-windows
  9383. or something.  Are you familiar with the X protocol or anything?!!
  9384. ---------------
  9385. ** Current thread: WINDOWING SOFTWARE
  9386.  
  9387. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BIR0316 Date: 07/14/89
  9388. From: RON FOX                                               Time: 10:05 pm
  9389.   To: TOM FRANK (Rcvd)                                      (Read 109 times)
  9390. Subj: R: WINDOWING SOFTWARE
  9391.  
  9392. Tom,
  9393. Vermont Views seems to be a good product, at least from what I have read.
  9394. The demo disk that they sent me, though, was folded in half and
  9395. unreadable.  Also, at $790 for the source, I can't afford it.  I have
  9396. decided to go with C-Worthy w/ source for $399 from Programmer's Shop.  I
  9397. did some playing around with it and am pretty pleased.  I did have to
  9398. modify two of the procedures' source to alow for a header_none.
  9399. Thanks.....
  9400. Ron
  9401. ---------------
  9402. ** Current thread: WINDOWING SOFTWARE
  9403.  
  9404. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BIS2302 Date: 07/14/89
  9405. From: DAVID NYE                                             Time: 11:38 pm
  9406.   To: RON FOX (Rcvd)                                        (Read 109 times)
  9407. Subj: R: WINDOWING SOFTWARE
  9408.  
  9409. I use the CXL shareware package, available here as CXL50-1.ZIP and
  9410. CXL50-2.ZIP.  Can't be beat for the price ($35 registration).
  9411. ---------------
  9412. ** Current thread: WINDOWING SOFTWARE
  9413.  
  9414. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLB3443 Date: 07/17/89
  9415. From: GEORGE KOFMAN                                         Time: 07:57 am
  9416.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 110 times)
  9417. Subj: R: WINDOWING SOFTWARE
  9418.  
  9419. Mike ---
  9420.  
  9421. I don't follow the X-window protocols since most of the stuff I do is NOT
  9422. graphics based. But if you hear anything new and/or interesting, please
  9423. keep me posted.
  9424.  
  9425. Thanks.
  9426. Geo.
  9427. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9428.  
  9429. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BJI2456 Date: 07/15/89
  9430. From: CURTIS ABRUE                                          Time: 02:40 pm
  9431.   To: ALL                                                   (Read 108 times)
  9432. Subj: COMM C SOURCE
  9433.  
  9434. A project we're working calls for us to write a Comm pgogram and I was
  9435. wondering if there is some good TC 2.0 PD code, either a program or a
  9436. library that we can use to cut down on our production time (make it easy).
  9437.  
  9438. I scanned the files and found TOO MUCH that will take some sorting to go
  9439. through.  Can anybody recommend some PD comm pgm with C source or a
  9440. library of routines?  We're not doing anything fancy, just basic stuff
  9441. like dial-up, up/down protocols, and macros.
  9442.  
  9443. Or, if you can direct me to some of the better bbs's around that
  9444. specialize in C programming...?
  9445.  
  9446. Thanks!
  9447. ---------------
  9448. Following thread
  9449.  
  9450. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BK11033 Date: 07/16/89
  9451. From: DAVID NYE                                             Time: 01:17 am
  9452.   To: CURTIS ABRUE (Rcvd)                                   (Read 109 times)
  9453. Subj: R: COMM C SOURCE
  9454.  
  9455. Try TCOMM40.ZIP.  I looked at it a while back, looks pretty good for $25
  9456. registration fee.  If you prefer public domain, download the code from Al
  9457. Stevens C Programming column in Feb 89 DDJ for TinyComm (scan for DDJ).
  9458. Some of the code may be in a later month's collection.
  9459. ---------------
  9460. ** Current thread: COMM C SOURCE
  9461.  
  9462. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLC0966 Date: 07/17/89
  9463. From: CURTIS ABRUE                                          Time: 08:16 am
  9464.   To: DAVID NYE (Rcvd)                                      (Read 107 times)
  9465. Subj: R: COMM C SOURCE
  9466.  
  9467. Thanks, Dave.  Tinycomm was just what I had in mind, but I didnt know it
  9468. was PD.  What's DDJ?  I will scan for it anyway, and thanks for your help!
  9469. CURT
  9470. ---------------
  9471. ** Current thread: COMM C SOURCE
  9472.  
  9473. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BMR2408 Date: 07/18/89
  9474. From: DAVID NYE                                             Time: 10:40 pm
  9475.   To: CURTIS ABRUE (Rcvd)                                   (Read 110 times)
  9476. Subj: R: COMM C SOURCE
  9477.  
  9478. DDJ is Dr. Dobb's Journal.
  9479. ---------------
  9480. ** Current thread: COMM C SOURCE
  9481.  
  9482. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BNM0690 Date: 07/19/89
  9483. From: CURTIS ABRUE                                          Time: 06:11 pm
  9484.   To: DAVID NYE (Rcvd)                                      (Read 104 times)
  9485. Subj: R: COMM C SOURCE
  9486.  
  9487. Thanks.  I found it.  I handed to my C guy and he liked Litecomm better.
  9488. We ordered that.
  9489.  
  9490. Thanks for your help!
  9491. CURT
  9492. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9493.  
  9494. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BKE1719 Date: 07/16/89
  9495. From: BRUCE SHERMAN                                         Time: 10:28 am
  9496.   To: ALL                                                   (Read 111 times)
  9497. Subj: TSR FUNCTIONS
  9498.  
  9499. Can someone recommend a software package for writing memory-resident
  9500. applications in Turbo C or Turbo Pascal?
  9501. ---------------
  9502. Following thread
  9503.  
  9504. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLC1293 Date: 07/17/89
  9505. From: STEVEN KEY                                            Time: 08:21 am
  9506.   To: BRUCE SHERMAN (Rcvd)                                  (Read 109 times)
  9507. Subj: R: TSR FUNCTIONS
  9508.  
  9509. Bruce,
  9510.  
  9511. Try Tesseract.  It is on the board in several files.  Tess-d is the doc
  9512. file, tess-c the c file and I think tess- p for pascal.  There is also a
  9513. tess-a for MASM.
  9514.  
  9515. Steven
  9516. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9517.  
  9518. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BKN1776 Date: 07/16/89
  9519. From: JIM NICKEL                                            Time: 07:29 pm
  9520.   To: ALL                                                   (Read 107 times)
  9521. Subj: RECOGNIZING ARROW KEYS IN C
  9522.  
  9523. Does anyone know how (or if it's possible) to recognize the 4 arrow keys
  9524. in C.  When I use the getch(), all I get is 00.  I want to write a menuing
  9525. type of program and use the arrow keys to move through the menus like
  9526. almost everyone is familiar with.  Any help would be appreciated.
  9527. I plan to use Turbo C and/or DEC VAX C.  Thanks
  9528. ---------------
  9529. Following thread
  9530.  
  9531. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BKP1114 Date: 07/16/89
  9532. From: MARK HOWELL                                           Time: 08:18 pm
  9533.   To: JIM NICKEL (Rcvd)                                     (Read 107 times)
  9534. Subj: R: RECOGNIZING ARROW KEYS IN C
  9535.  
  9536. Jim,  With DOS, if you access any of the special funcion keys (i.e. arrow
  9537. keys) you get a two byte return the first of which will be a 00.  If you
  9538. want to detect the arrow keys, first try a getch() and if the return is 00
  9539. then do getch() again and I believe you will get the second part of the
  9540. code that will tell you which special funtion key was pressed.  I havent
  9541. tried this myself in C but have in other languages and the same should
  9542. apply to C.
  9543. ---------------
  9544. ** Current thread: RECOGNIZING ARROW KEYS IN C
  9545.  
  9546. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BKS0381 Date: 07/16/89
  9547. From: JIM NICKEL                                            Time: 11:06 pm
  9548.   To: MARK HOWELL (Rcvd)                                    (Read 105 times)
  9549. Subj: R: RECOGNIZING ARROW KEYS IN C
  9550.  
  9551. Thanks for the quick reply, Mark.  I'll give that a try at work tomorrow
  9552. with the dual getch() function.
  9553. ---------------
  9554. ** Current thread: RECOGNIZING ARROW KEYS IN C
  9555.  
  9556. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLL1059 Date: 07/17/89
  9557. From: GRANT ELLSWORTH (Leader)                              Time: 05:17 pm
  9558.   To: JIM NICKEL (Rcvd)                                     (Read 105 times)
  9559. Subj: R: RECOGNIZING ARROW KEYS IN C
  9560.  
  9561. Jim, you may want to check out GETKBD.ZIP in mahnoney ... some of the code
  9562. there-in does illustrate how to get / recognize keys with extended scan
  9563. codes.  Grant
  9564. ---------------
  9565. ** Current thread: RECOGNIZING ARROW KEYS IN C
  9566.  
  9567. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLQ1000 Date: 07/17/89
  9568. From: JIM NICKEL                                            Time: 09:16 pm
  9569.   To: GRANT ELLSWORTH (Rcvd)                                (Read 105 times)
  9570. Subj: R: RECOGNIZING ARROW KEYS IN C
  9571.  
  9572. Thanks for the reply Grant.  I'll check that file out.
  9573. Jim
  9574. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9575.  
  9576. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BKR3427 Date: 07/16/89
  9577. From: JOHN ABATTE                                           Time: 10:57 pm
  9578.   To: ALL                                                   (Read 108 times)
  9579. Subj: HELP WITH STRUCTURES
  9580.  
  9581. Hi All,
  9582.     For my latest homework assignment I have to create a memory based
  9583. student registration program using a nested structure as outlined
  9584. below:
  9585.  
  9586. struct bdate {             /* template for birthdate */
  9587.        int month;
  9588.        int day;
  9589.        int year;
  9590.        };
  9591. struct regis {             /* template for registration info */
  9592.        char name[MAXLEN];
  9593.        struct bdate dob;
  9594.        char ssid[12];
  9595.        char major[20];
  9596.        };
  9597.  
  9598.     The problem I'm having is trying to figure out a way to sort the
  9599. data on the student name field using pointers to the structure. We only
  9600. started studying pointers last week so I'm still not very comfortable
  9601. with them. I have several examples for sorting strings, but I can't
  9602. quite figure out how to apply them to structures.
  9603.  
  9604.     Can anyone give me an example of how to do the sort, or maybe point
  9605. me to some reading material/source code examples showing how it's done?
  9606. I've been trying for the past three days to come up with something, but
  9607. everything I've read about structures doesn't go into this. I'm really
  9608. stumped at this point, so I sure would appreciate any help or
  9609. suggestions anyone may have.
  9610.  
  9611.     Thanks in advance...John.
  9612. ---------------
  9613.  
  9614. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BLH2584 Date: 07/17/89
  9615. From: JOHN KASTER                                           Time: 01:43 pm
  9616.   To: ALL                                                   (Read 104 times)
  9617. Subj: C PROGRAMMING POSITION
  9618.  
  9619. If this is not the proper place to leave a job offering, I apologize.
  9620. Since it was related to the topic, I thought it would be appropriate.  My
  9621. company is looking for at least one 'C' programmer with 1-2 (or more)
  9622. years experience.  We are ready to hire IMMEDIATELY.  Excellent benefits
  9623. and working conditions.  Submit resumes, questions to:
  9624.  
  9625. John Kaster
  9626. Phoenix Systems, Inc.
  9627. Suite 700
  9628. 2000 N. 15th Street
  9629. Arlington, VA  22201
  9630. 703/522-0820 (voice)
  9631. 703/243-4820 or 1741 (BBS)
  9632. 703/522-5407 (FAX)
  9633. ---------------
  9634.  
  9635. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BMB0365 Date: 07/18/89
  9636. From: TOM NOWALIS                                           Time: 07:06 am
  9637.   To: ALL                                                   (Read 114 times)
  9638. Subj: VARIABLE PROBLEM
  9639.  
  9640. I am writing a program that contains a structure. Two of the elements in
  9641. this structure are char state[3] and char zip[10]. I have to gets commands
  9642. to retreive these strings. gets(addr_info[0].state);
  9643. and gets(addr_info[0].zip. The problem is when I go to print out these
  9644. two variables. "state" prints out with the zip code like this: Wis53219.
  9645. Using debug evaluate shows the state variable setup like this Wis53219.
  9646. So naturally it will print like this. But how is zip data getting into the
  9647. state variable? Zip is also in its own variable.
  9648. ---------------
  9649. Following thread
  9650.  
  9651. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BMM0961 Date: 07/18/89
  9652. From: MIKE SZYMANSKI                                        Time: 06:16 pm
  9653.   To: TOM NOWALIS (Rcvd)                                    (Read 109 times)
  9654. Subj: R: VARIABLE PROBLEM
  9655.  
  9656. Tom, Try sending the gets() function a pointer in the form of:
  9657. gets(&address.state[0]),  and gets(&address.zip[0]).  This will pass the
  9658. address of the first charactor in each string contained in your address
  9659. structure,  providing you have declared the vars as char var[n], where var
  9660. is your variable and n is the number of characters for the string var.
  9661. ---------------
  9662. ** Current thread: VARIABLE PROBLEM
  9663.  
  9664. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BN11728 Date: 07/19/89
  9665. From: ERIC JABLOW                                           Time: 01:28 am
  9666.   To: TOM NOWALIS (Rcvd)                                    (Read 105 times)
  9667. Subj: R: VARIABLE PROBLEM
  9668.  
  9669. Aha!  You have a fencepost error.  Declare your string variables to be
  9670. 1 element larger: char state[4], zip[11].  This leaves room for the
  9671. terminating null character.  You see, with your current definitions,
  9672. There are 13 bytes reserved for your 2 fields.  Now, all that gets is told
  9673. about is the starting address, and so in your addr_field[0] structure, the
  9674. gets(addr_field[0].state) statement will store the string "Wis" like
  9675. this:
  9676. W i s \0 _ _ _ _ _ _ _ _ _
  9677.      |
  9678. state ----------zip--------
  9679. Then typing in a 5 digit number for the zip-code will put it into
  9680. the beginning of zip:
  9681.  
  9682. W i s 3 4 5 6 7 \0 _ _ _ _
  9683.      |
  9684. state ----------zip--------.
  9685.  
  9686. Then, puts(addr_field[0].state) prints out everything from the W
  9687. in state[0] to the terminating null in zip[6].
  9688.  
  9689. The moral of this story is: Dimension your strings to one more than the
  9690. length you want, so as to leave room for the terminating null.
  9691.  
  9692. The additional moral of this story is: NEVER USE GETS or PUTS!
  9693. Always use fgets or fputs!  With the f-versions, you can limit the size of
  9694. the incoming data.  One of the bugs that Robert Morris's Internet worm
  9695. took advantage of was that the UNIX fingerd program used gets, and so
  9696. sending enough garbage to it would cause the program to overwrite the
  9697. stack.  Any program using gets or puts is automatically insecure.
  9698. DO not use it.
  9699.  
  9700. Eric Jablow
  9701. ---------------
  9702. ** Current thread: VARIABLE PROBLEM
  9703.  
  9704. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQP2851 Date: 07/21/89
  9705. From: PATRICK LEMIRANDE                                     Time: 08:47 pm
  9706.   To: TOM NOWALIS (Rcvd)                                    (Read 102 times)
  9707. Subj: R: VARIABLE PROBLEM
  9708.  
  9709. Tom,
  9710.  
  9711.      your problem is in the length of the State file.
  9712.  
  9713.      To print the state field only, it must end with a 0.   With the
  9714. variable only three characters long, and the value is three characters
  9715. long there is no room for the 0, which is the delimiter.   The procedure
  9716. then goes on to print until it finds a delimiter at the end of the zip
  9717. variable.
  9718.  
  9719.      Increase the length of addr_info[].state and your code should run
  9720. just fine.
  9721.  
  9722.       I ran into the same problem when today, and that is how I fixed it.
  9723.  
  9724. Patrick
  9725. ---------------
  9726. ** Current thread: VARIABLE PROBLEM
  9727.  
  9728. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BSR0655 Date: 07/23/89
  9729. From: TOM NOWALIS                                           Time: 10:10 pm
  9730.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 100 times)
  9731. Subj: R: VARIABLE PROBLEM
  9732.  
  9733. Pat, Thanks for the phone call the other day. Problem is solved. You are
  9734. right on the money with your logic. Happy C ING
  9735. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9736.  
  9737. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BPN0802 Date: 07/20/89
  9738. From: BERNIE PARENT                                         Time: 07:13 pm
  9739.   To: ALL                                                   (Read 104 times)
  9740. Subj: ESCAPE FILTER
  9741.  
  9742. Can anyone tell me how to write a program to filter the escape key
  9743. from the console(keyboard). I have a program for logging users in
  9744. on a computer but the users know the escape key will allow them to
  9745. skip the log on procedure. The program could be TSR type or through
  9746. a pipe. Thanks.
  9747. ---------------
  9748. Following thread
  9749.  
  9750. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQ11910 Date: 07/21/89
  9751. From: ERIK DUFEK                                            Time: 12:31 am
  9752.   To: BERNIE PARENT (Rcvd)                                  (Read 106 times)
  9753. Subj: R: ESCAPE FILTER
  9754.  
  9755. Could you use the ANSI capability to redefine the escape key as let's say
  9756. a <CR>?  I'm not sure if your program would bypass the redfinition.
  9757. ---------------
  9758. ** Current thread: ESCAPE FILTER
  9759.  
  9760. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQS0861 Date: 07/21/89
  9761. From: ROBERT BALSOVER                                       Time: 11:14 pm
  9762.   To: ERIK DUFEK (Rcvd)                                     (Read 101 times)
  9763. Subj: R: ESCAPE FILTER
  9764.  
  9765. Bernie,
  9766. I don't know if you want to get this deep,  you might try to write
  9767. your own int 0x16 routine. You could write it so it saves the old
  9768. interupt vector, calls that vector, and reads the returned data.
  9769. If it returns ESC just trash that data and call it again untill you
  9770. get something other than ESC.  If you did it that way you could
  9771. leave the hardware details to the ROM routine.
  9772. Bob
  9773. ---------------
  9774. ** Current thread: ESCAPE FILTER
  9775.  
  9776. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BUR0200 Date: 07/25/89
  9777. From: BERNIE PARENT                                         Time: 10:03 pm
  9778.   To: ERIK DUFEK (Rcvd)                                     (Read 99 times)
  9779. Subj: R: ESCAPE FILTER
  9780.  
  9781. I didn't think the escape key could be redefined with ANSI. As far the
  9782. program bypassing it I would just have to try and see. Thanks for the
  9783. reply.
  9784. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9785.  
  9786. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BQS3454 Date: 07/21/89
  9787. From: JIM NICKEL                                            Time: 11:57 pm
  9788.   To: ALL                                                   (Read 103 times)
  9789. Subj: IBM PC/XT VERSUS WORKSTATIONS
  9790.  
  9791. I have a general question regarding workstations.  I plan to develop a
  9792. program (in C) on an IBM PC/XT and eventually want to port it to a
  9793. workstation that our company is planning to acquire.  I have absolutely no
  9794. experience with workstations.  I want to know if I would be expecting too
  9795. much if I thought my C program that I develope on the PC will work on the
  9796. workstation without serious modifications?  The program I'm writing will
  9797. be very screen and keyboard intensive.  Any opinions would be appreciated.
  9798. Thanks.
  9799. Jim
  9800. ---------------
  9801. Following thread
  9802.  
  9803. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BRG0031 Date: 07/22/89
  9804. From: ROBERT BALSOVER                                       Time: 12:00 pm
  9805.   To: JIM NICKEL (Rcvd)                                     (Read 102 times)
  9806. Subj: R: IBM PC/XT VERSUS WORKSTATIONS
  9807.  
  9808. Jim,
  9809. If you wrote it in ANSI C and you used a windowing library that was
  9810. available in the workstations' OS flavor, it should work.  You could
  9811. not do anything that is hardware specific at all, unless of course
  9812. you were willing to repeat that effort with the workstations.
  9813. I don't have any experience with a 3rd party windowing library, but
  9814. I'm sure someone else here has and would suggest a good one.  A couple
  9815. that I can think of is Vermont Views, Metawindows and Windows For Data.
  9816. You can see thier advertisements in any of the trade rags like DDJ
  9817. Computer Languge etc..  I wouldn't send off a check to these companies
  9818. until you check around the BBS's for other peoples experinces with them.
  9819. Bob
  9820. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9821.  
  9822. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BTE0349 Date: 07/24/89
  9823. From: DON BOWEN                                             Time: 10:05 am
  9824.   To: ALL                                                   (Read 101 times)
  9825. Subj: C COMPILERS
  9826.  
  9827. Could someone out there tell me what the major differences are between
  9828. Microsoft's C 5.1 and QuickC.  Also, What are the advantages (if any) of
  9829. using a compiler like Microsoft's or Lattice instead of one like Turbo C
  9830. thacosts less and is easy to use.  Thanks in advance.
  9831. ---------------
  9832. Following thread
  9833.  
  9834. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BTQ0736 Date: 07/24/89
  9835. From: ROBERT BALSOVER                                       Time: 09:12 pm
  9836.   To: DON BOWEN (Rcvd)                                      (Read 105 times)
  9837. Subj: R: C COMPILERS
  9838.  
  9839. Don,
  9840. Turbo C and I believe Quick C don't support MS Windows & OS/2.
  9841. If your use will not be in MS Windows And OS/2 Turbo C or Quick C
  9842. would be a better choice because of the price difference.  From
  9843. the advertisements it appears that Turbo C is on the average as fast
  9844. as Microsoft C 5.1, I don't know anything about Quick C accept that
  9845. MS improved the editor and I think it now supports different Memory
  9846. models in addition to the medium model.
  9847. I don't know anything about Latice.
  9848. Bob
  9849. ---------------
  9850. ** Current thread: C COMPILERS
  9851.  
  9852. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BTR1532 Date: 07/24/89
  9853. From: DAVID NYE                                             Time: 10:25 pm
  9854.   To: DON BOWEN (Rcvd)                                      (Read 103 times)
  9855. Subj: R: C COMPILERS
  9856.  
  9857. The basic difference between QuickC and MSC 5.1 is that the former is an
  9858. integrated enviornment in which program development is easier, but the
  9859. latter generates faster and tighter code.  Microsoft wants you to use
  9860. QuickC for development, then MSC 5.1 for the production run.  Turbo C
  9861. (which I use) comes as both an integrated enviornment and a stand-alone
  9862. compiler.  It produces code of about the same quality as MSC 5.1.  The big
  9863. advantage of QuickC, at least the latest version, is that it includes
  9864. QuickAssembler in the integrated environment.  When using assembler with
  9865. Turbo C you must use the stand alone compiler.  Turbo C Professional comes
  9866. with Turbo Assembler and a very nice stand alone debugger, better then
  9867. Microsoft's Codeview.  The debuggers in both QuickC's and Turbo C's
  9868. integrated environments are fairly primitive in comparison.  I don't think
  9869. the Lattice C compiler has much going for it at this point.  Watcom C is
  9870. worth looking at, however.  It supposedly produces even better code than
  9871. Turbo C and MSC and comes with a stand alone form and an integrated
  9872. environment.  Any of the above are such good products compared to what was
  9873. available up until a few years ago that you can't go wrong with any of
  9874. them.
  9875. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9876.  
  9877. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BUF3159 Date: 07/25/89
  9878. From: JIM NICKEL                                            Time: 11:52 am
  9879.   To: ALL                                                   (Read 117 times)
  9880. Subj: TURBO C 2 PATCHES
  9881.  
  9882. Has anyone tried the patches for TC2 that were uploaded to the Mahoney
  9883. section of the file menu?  I'm having some problems compiling a screen
  9884. demo program (on this board) using TC2 that is supposed to be able to be
  9885. compiled, so I'm curious to see if these patches work.  On the other hand,
  9886. I don't want to screw anything up by installing the patches.
  9887. Thanks.
  9888. Jim
  9889. ---------------
  9890. Following thread
  9891.  
  9892. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BUL1207 Date: 07/25/89
  9893. From: GRANT ELLSWORTH (Leader)                              Time: 05:20 pm
  9894.   To: JIM NICKEL (Rcvd)                                     (Read 116 times)
  9895. Subj: R: TURBO C 2 PATCHES
  9896.  
  9897. Jim, that .ZIP (patchtc2.zip) is the official borland supported patch set,
  9898. but you would also need borland's patch.com.  Other evil note:  That file
  9899. PATCHTC2.ZIP is not really a ZIP!  It is an .ARC! (Unless Bob M. has dis-
  9900. covered that it was not a ZIP and converted it).  The PATCH.COM program
  9901. you would need was uploaded into the Mahoney COllection as a separate .ZIP
  9902. about 2 weeks ago under name of PATCH.ZIP, if I recall correctly.  I
  9903. couldn't really suggest whether your TC problem is related to the patches
  9904. in the ZIP, but I think that the patches in there are all those borland
  9905. released for TC2.0.  If you read the .DIF files and the other dox
  9906. contained in the archive, you may be able to determine whether the patches
  9907. are relevant to your problems.  Grant
  9908. ---------------
  9909. ** Current thread: TURBO C 2 PATCHES
  9910.  
  9911. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C3M3092 Date: 08/03/89
  9912. From: TOM NOWALIS                                           Time: 06:51 pm
  9913.   To: JIM NICKEL (Rcvd)                                     (Read 120 times)
  9914. Subj: R: TURBO C 2 PATCHES
  9915.  
  9916. Jim, I uploaded the patches. I got them from Compuserve. They worked fine
  9917. for me. If you have any questions drop me a line. Tom N.
  9918. ---------------
  9919. ** Current thread: TURBO C 2 PATCHES
  9920.  
  9921. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C4F0613 Date: 08/04/89
  9922. From: JIM NICKEL                                            Time: 11:10 am
  9923.   To: TOM NOWALIS (Rcvd)                                    (Read 120 times)
  9924. Subj: R: TURBO C 2 PATCHES
  9925.  
  9926. Thanks for the patches, Tom.  I have installed them, but quite honestly,
  9927. I haven't got into Turbo C enough to understand what they are supposed to
  9928. do.  One of these rainy days I'll start really getting into it.
  9929. Jim
  9930. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  9931.  
  9932. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BVK3529 Date: 07/26/89
  9933. From: JIM NICKEL                                            Time: 04:58 pm
  9934.   To: ALL                                                   (Read 115 times)
  9935. Subj: ALLOCATING MEMORY IN C PROGRAMS
  9936.  
  9937. I am writing a program in C which will read a disk file of text into RAM.
  9938. I will read a string from the disk, determine its length, then use the
  9939. malloc() function to allocate RAM, then copy that string to the address
  9940. returned by the malloc() function.  After the whole text file is read into
  9941. ram, the user may decide to start over by clearing out the ram.
  9942. My question is this:  Can I use the free() command in C to do this or not?
  9943. The description in my TURBO C book says that free deallocates a memory
  9944. block allocated by a previous call to calloc, malloc, or realloc.  I am
  9945. confused if this means just the most recent malloc() call, or EVERY malloc
  9946. call that was made.  Any ideas?  I also wonder if it would be possible to
  9947. erase (or free) only a certain small section of RAM as what might be done
  9948. in a word-processor when you delete a line.  I think that would require
  9949. some sort of doubly-linked list, but I haven't thought about it too much
  9950. yet.
  9951. ---------------
  9952. Following thread
  9953.  
  9954. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BVR2352 Date: 07/26/89
  9955. From: ROBERT BALSOVER                                       Time: 10:39 pm
  9956.   To: JIM NICKEL (Rcvd)                                     (Read 111 times)
  9957. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  9958.  
  9959. Jim,
  9960. If you use that method of allocating space, it sounds like your
  9961. memory will get fragmented to a great extent.  free() can be used
  9962. on any pointer you prevoiusly allocated with malloc() or calloc(),
  9963. just make sure you include alloc.h or what ever header file the
  9964. malloc function is prototyped in. I would personally allocate
  9965. one buffer for the whole file rather than buffers for each line.
  9966. If you needed to change the size of the buffer later you could use
  9967. realloc().
  9968. As far as your approach goes you could use doubly linked lists or
  9969. a array of char pointers where each member of the array is one of
  9970. your pointers and a integer that holds the last used member of the array.
  9971. Bob
  9972. ---------------
  9973. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  9974.  
  9975. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BWR1936 Date: 07/27/89
  9976. From: JIM NICKEL                                            Time: 10:32 pm
  9977.   To: ROBERT BALSOVER (Rcvd)                                (Read 108 times)
  9978. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  9979.  
  9980. Thanks for the reply Bob.  I plan to read a line of text in, determine its
  9981. length, then use the malloc() function for each line depending on its
  9982. length.  I'm not sure I understand your suggestion of using one buffer for
  9983. the whole file.  How do I know how much ram to allocate if the files are
  9984. of varying length?  One may be 10 lines long, while another may be 10K
  9985. long.  I guess the method used depends on the application.  I do not want
  9986. to run into the problem of my program not being able to handle a certain
  9987. file later down the road.
  9988. CUL
  9989. Jim.
  9990. ---------------
  9991. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  9992.  
  9993. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BXB2840 Date: 07/28/89
  9994. From: STEVEN KEY                                            Time: 07:47 am
  9995.   To: JIM NICKEL (Rcvd)                                     (Read 109 times)
  9996. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  9997.  
  9998. Jim,
  9999.  
  10000. I don't use C, so this suggestion may be all wet.  In Pascal, one can get
  10001. the size of a file by using the FileSize function.  Memory could then be
  10002. allocated to fit.  I'm sure the same thing can be done in C, since the
  10003. function is really just a DOS call anywho.
  10004.  
  10005. Steven
  10006. ---------------
  10007. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10008.  
  10009. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BY12042 Date: 07/29/89
  10010. From: ROBERT BALSOVER                                       Time: 12:34 am
  10011.   To: JIM NICKEL (Rcvd)                                     (Read 114 times)
  10012. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10013.  
  10014. Jim,
  10015. If you are reading from a disk file, you can get the file size with
  10016. filelenght();, if you are reading your text from the keyboard you
  10017. can start with 10k and increase the buffer size later with realloc();
  10018. if you run out of room. The only small restriction is IBM type machines
  10019. with thier 8088 (or 286,386,486 in real mode) have a segmented
  10020. architecture that has 64k max size for each segment, but that can also
  10021. be taken care of if you use huge pointers. If you used just one buffer
  10022. for holding your strings you could append them together with a NULL
  10023. byte separating them.
  10024. Bob
  10025. ---------------
  10026. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10027.  
  10028. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BY13307 Date: 07/29/89
  10029. From: JIM NICKEL                                            Time: 01:55 am
  10030.   To: ROBERT BALSOVER (Rcvd)                                (Read 111 times)
  10031. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10032.  
  10033. Thanks for your input.  I think I have enough inputs now to start trying
  10034. some of them out.  I'll be back if (when) I have some other questions.
  10035. Jim
  10036. ---------------
  10037. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10038.  
  10039. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BZM0296 Date: 07/30/89
  10040. From: DAVID NYE                                             Time: 06:04 pm
  10041.   To: JIM NICKEL (Rcvd)                                     (Read 111 times)
  10042. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10043.  
  10044. I think what Bob means is that it is more efficient to load the whole
  10045. file into memory (or as much of it as will fit) at one time rather
  10046. than line by line.  I tried doing much as you are proposing when
  10047. writing my programmer's editor E (which I wound up writing in
  10048. assembler after trying first C then Modula-2.  It's available here as
  10049. E.ZIP (plug, plug)).  I found it takes forever to read in a file if
  10050. you have to call malloc() for each line.  It works better to use
  10051. allocmem() to find out how much memory is available, then malloc() all
  10052. of it.  Next, read the whole file in.  Then build an array of pointers
  10053. to the start of each line in the buffer.  Finally, save a pointer to
  10054. the first free byte of memory, so you'll know where to begin loading
  10055. your next file if you keep more than one in memory at once.
  10056.  
  10057. In answer to your question about deallocating one line at a time, I
  10058. think you are asking if Turbo C provides garbage collection, which it
  10059. does not.  If you want to reuse the space that a deleted line occupied
  10060. you must find something else that will fit in that space or move down
  10061. all the text above it by the length of the line, adjusting any
  10062. pointers to the moved text.
  10063.  
  10064. What are you writing (if I may ask)?
  10065. ---------------
  10066. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10067.  
  10068. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2B^R2138 Date: 07/31/89
  10069. From: JIM NICKEL                                            Time: 10:35 pm
  10070.   To: DAVID NYE (Rcvd)                                      (Read 111 times)
  10071. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10072.  
  10073. Thanks for your reply David.  I am writing what can best be described as a
  10074. 'pre-compiler'.  We have a new product at work that is built around a
  10075. brand new proprietary computer language that we have developed.  My task
  10076. is to help the application engineers build a source file that can be fed
  10077. to our special compiler in order to eventually produce object code that
  10078. can be burned into proms.  A good analogy would be to say if the app
  10079. engineer wanted to put a NOR gate in the 'circuit' he'd have to specify
  10080. the fact that it's a NOR gate as well as all inputs and outputs.  It's
  10081. quite a bit more sophisticated than that, but that's it in a nutshell.
  10082. I think I like your (and other's) suggestion to read the whole file in,
  10083. then allocate more memory as its needed.  I'm not sure that garbage
  10084. collection is too awfully important, but just thought I'd ask.
  10085. Thanks again.
  10086. Jim
  10087. ---------------
  10088. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10089.  
  10090. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C1Q3305 Date: 08/01/89
  10091. From: DAVID NYE                                             Time: 09:55 pm
  10092.   To: JIM NICKEL (Rcvd)                                     (Read 114 times)
  10093. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10094.  
  10095. Sounds interesting.  When you speak of NOR gates, are you saying that your
  10096. company is developing a silicon compiler, or is that just an analogy?  Can
  10097. you say anything more about the language (I'm interested in computer
  10098. language development from a hobbyist's point of view)?
  10099. ---------------
  10100. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10101.  
  10102. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C3L0883 Date: 08/03/89
  10103. From: JIM NICKEL                                            Time: 05:14 pm
  10104.   To: DAVID NYE (Rcvd)                                      (Read 113 times)
  10105. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10106.  
  10107. The NOR gate analogy I used was simply an analogy.  We haven't made our
  10108. big splash into the market yet, so I don't want to say anything about it
  10109. at this time, but we should be announcing it in early September.
  10110. The product that this language will be used for is DC drives used to
  10111. control large (5-1000 Horsepower) motors.  If you're familiar with ladder
  10112. diagrams, it's kinda like that, hopefully more versatile.  Since I have
  10113. your attention David, I have another question for you.  I want to be able
  10114. to delete files from the disk while running my C program.  In TURBO C 2.0,
  10115. this SHOULD be able to be accomplished by saying:
  10116. system(delete *.bak");
  10117. .
  10118. in order to delete all .bak type files.   IT DOESN'T WORK!
  10119. Am I doing something wrong?  I wonder if you could try it and let me know.
  10120. CUL
  10121. Jim  (I think I'll post this as a general message also...)
  10122. ---------------
  10123. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10124.  
  10125. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C3L2357 Date: 08/03/89
  10126. From: DON BOWEN                                             Time: 05:39 pm
  10127.   To: JIM NICKEL (Rcvd)                                     (Read 112 times)
  10128. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10129.  
  10130. Jim,
  10131.  
  10132. You are right, system("delete *.bak"); should work.  If it doesn't you
  10133. probably have something else wrong in your program.  Can you put the
  10134. context in a message so that I can see it.  Hope I can help.
  10135.  
  10136. Don
  10137. ---------------
  10138. ** Current thread: ALLOCATING MEMORY IN C PROGRAMS
  10139.  
  10140. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C4F0488 Date: 08/04/89
  10141. From: JIM NICKEL                                            Time: 11:08 am
  10142.   To: DON BOWEN (Rcvd)                                      (Read 109 times)
  10143. Subj: R: ALLOCATING MEMORY IN C PROGRAMS
  10144.  
  10145. Operator error on this end, Don.  DELETE is NOT a valid DOS command, but
  10146. DEL is a valid DOS command.  It's one of those DOS quirks that I didn't
  10147. expect to see.  When I use system("del *.bak"); everything works fine.
  10148. CUL
  10149. Jim
  10150. \
  10151. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10152.  
  10153. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BXE0294 Date: 07/28/89
  10154. From: JOHN HEY                                              Time: 10:04 am
  10155.   To: ALL                                                   (Read 112 times)
  10156. Subj: EMERALD BAY IS BACK!
  10157.  
  10158. This is to inform database colleagues of exciting news that
  10159. I just received concerning the future of Emerald Bay and Eagle.
  10160.  
  10161. Ratliff Software Productions, Inc. (RSPI, Wayne Ratliff's outfit)
  10162. has apparently been given the go-ahead to resume marketing EB.
  10163. The Migent fiasco appears to be behind them, and they are now
  10164. shipping a much improved (and debugged) Emerald Bay product.
  10165.  
  10166. The Eagle frontend has been renamed "Vulcan" (for trademark reasons?).
  10167. The C Toolkit has been enhanced to include forms/screen utilities.
  10168. The Server has been released for general sale (not just beta copies).
  10169. The Vulcan compiler is shipping also.  It has been enhanced much since
  10170. the beta copies which were floating around last Christmas.
  10171.  
  10172. Right now, RSPI is selling the Vulcan package for $100 (that's what I
  10173. have heard so far).  Upgrades for previous Eagle owners are ca. $30,
  10174. as I understand it.
  10175.  
  10176. The Catch?  You have to call RSPI -- they probably can't contact you,
  10177. because the Eagle owners list is too old.
  10178.  
  10179. I have looked over much of the new Vulcan/EB product, and it is sharp.
  10180. I strongly recommend that interested parties contact RSPI (818-248-0877).
  10181. I would really like to see this product catch on, because I believe that
  10182. it is an extremely promising data management technology.
  10183.  
  10184. John P. Hey
  10185. GMT Corp.  (601)-453-8412
  10186. ---------------
  10187.  
  10188. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2BXK2955 Date: 07/28/89
  10189. From: DON BOWEN                                             Time: 04:49 pm
  10190.   To: ALL                                                   (Read 106 times)
  10191. Subj: OVERLAYS
  10192.  
  10193. I need to know how to write code to take advantage of overlays.  I'm using
  10194. Turbo C.  I would really appreciate it if someone who has actually written
  10195. even the smallest program using overlays would show me examples. What
  10196. types of overlay managers are available for TC and how much do they cost?
  10197. My application requires that any one of a variable number of modules, all
  10198. performing essentially the same task, be selected for use based on the
  10199. configuration of the program.  The configuration needs to be user
  10200. changeable.  Much thanks in advance!
  10201.  
  10202. Don
  10203. ---------------
  10204.  
  10205. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C2D0520 Date: 08/02/89
  10206. From: PATRICK LEMIRANDE                                     Time: 09:08 am
  10207.   To: ALL                                                   (Read 110 times)
  10208. Subj: CHECKING SCANF
  10209.  
  10210. All,
  10211.  
  10212.      I know that when I use scanf I have to check the entered value to
  10213. make sure it is not a character.  Then I have to do something about it.
  10214.  
  10215.      My question is:  How do I check it?  And what do I do about it?
  10216.  
  10217. Patrick
  10218. ---------------
  10219. Following thread
  10220.  
  10221. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C510203 Date: 08/05/89
  10222. From: ROBERT BALSOVER                                       Time: 12:03 am
  10223.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 111 times)
  10224. Subj: R: CHECKING SCANF
  10225.  
  10226. Patrick,
  10227. I'd stay clear of scanf unless you are reading text files that you are
  10228. sure are in a predefined structure.  There is no easy way of checking
  10229. scanf();.  I haven't seen any programs in a long time that attempt
  10230. to read input from a human with scanf, doesn't seem worth the effort.
  10231. Does your program need to get more than one value at one prompt, or
  10232. are you getting just one input per prompt.  If you just getting one value
  10233. per prompt your library should have functions for input of int's, char[],
  10234. etc., I suggest you consider using those instead.
  10235. Bob
  10236. ---------------
  10237. ** Current thread: CHECKING SCANF
  10238.  
  10239. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C5N0689 Date: 08/05/89
  10240. From: PATRICK LEMIRANDE                                     Time: 07:11 pm
  10241.   To: ROBERT BALSOVER (Rcvd)                                (Read 107 times)
  10242. Subj: R: CHECKING SCANF
  10243.  
  10244. Robert,
  10245.  
  10246.      I am not sure what you are saying.  Is it that I should not let DOS
  10247. get in the way and read my input directly from the keyboard.
  10248.  
  10249.      That would explain why most programs don't follow the standard DOS
  10250. rules.  I have other options that read directly from the keyboard buffer,
  10251. and just decided not to go that route.
  10252.  
  10253.      What I need to do is input a number from 1 to 255 in one case and
  10254. from 1 to 2376, then send that to the printer as part of a string.
  10255.  
  10256. Patrick
  10257. ---------------
  10258. ** Current thread: CHECKING SCANF
  10259.  
  10260. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CA11826 Date: 08/06/89
  10261. From: ROBERT BALSOVER                                       Time: 01:30 am
  10262.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 111 times)
  10263. Subj: R: CHECKING SCANF
  10264.  
  10265. Patrick,
  10266. Are you saying that using dos is using scanf()?  It reads input from the
  10267. keyboard also.  Getting input from the keyboard buffer is using DOS,
  10268. its just using a different function of int 0x21 than file functions.
  10269. int 0x21 AH=1 is read keyboard and echo
  10270. " " " "  AH=6 is direct consol input/output
  10271.            =7    direct con I/O without echo
  10272. there are several others but I would stick to your library routines.
  10273. Bob
  10274. ---------------
  10275. ** Current thread: CHECKING SCANF
  10276.  
  10277. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CAD1519 Date: 08/06/89
  10278. From: PATRICK LEMIRANDE                                     Time: 09:25 am
  10279.   To: ROBERT BALSOVER (Rcvd)                                (Read 116 times)
  10280. Subj: R: CHECKING SCANF
  10281.  
  10282. Robert,
  10283.  
  10284.      that makes it a little clearer.  I will try some things and see what
  10285. happens.
  10286.  
  10287.      I got the idea of using scanf from my tutor program.  As far as how
  10288. some of these C commans break down into ASM commands I have no idea.  I
  10289. don't know how you would know that either.
  10290.  
  10291.      One more question.  Do you have an idea as to how many lines of the
  10292. same code become beneficial to write as a separate procedure. áIf I have
  10293. the same ten lines of code in three different places then I can put them
  10294. in a procedure and call it.
  10295.  
  10296.      I can see for one line it would not be a good idea to put it in a
  10297. separate procedure and call it each time as this would probably generate
  10298. a longer program.
  10299.  
  10300.      How many lines do you think would the the break even point?
  10301.  
  10302.  
  10303.      Also, do you have any pointers for writing smaller more efficient C
  10304. code?
  10305.  
  10306. Patrick
  10307.  
  10308. ---------------
  10309. ** Current thread: CHECKING SCANF
  10310.  
  10311. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CAL3120 Date: 08/06/89
  10312. From: ROBERT BALSOVER                                       Time: 05:52 pm
  10313.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 111 times)
  10314. Subj: R: CHECKING SCANF
  10315.  
  10316. Patrick,
  10317. I would probably break something into separate functions for 10 lines,
  10318. but that would depend on if speed was critical in that routine.
  10319. Anything less than ten lines might not save you any space because the
  10320. compiler writes code to push all those parms on the stack.  You can make
  10321. Decissions on breaking up code onces you have it debugged anyway, or at
  10322. least thats what I do.
  10323. To get smaller, more efficent C code I use those bit functions I showed
  10324. you for those interupt rotuines we played with.  I generally define
  10325. them as a macro then use the macro like a function call, this makes
  10326. things easier to read ie.
  10327. #define shift_left(value, shift) ((value) << (shift))
  10328. #define max_allowed(value,limit) ((value) < (limit)) ? (value) : (limit)
  10329. if you  have any experience with a assembly language for any CPU you
  10330. have a idea of what is possible on the low level and C allows you to
  10331. get pretty close to that low level.  Don't rely on any C compilers
  10332. Library to get you there, because they won't.  If inline is allowed
  10333. in your project and your assembler supports it you can use it to get
  10334. faster, smaller code.  Many people like to have there compilers produce
  10335. assembly output instead of obj files so they can edit it and then compile
  10336. it with Masm or Tasm.
  10337. What have you been doing anyway, is this some kind of telecommunication
  10338. program?
  10339. Bob
  10340. ---------------
  10341. ** Current thread: CHECKING SCANF
  10342.  
  10343. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CAM3112 Date: 08/06/89
  10344. From: PATRICK LEMIRANDE                                     Time: 06:51 pm
  10345.   To: ROBERT BALSOVER (Rcvd)                                (Read 108 times)
  10346. Subj: R: CHECKING SCANF
  10347.  
  10348. Robert,
  10349.  
  10350.      I will take you advice and follow it as best I as my talent will
  10351. allow.
  10352.  
  10353.      I am starting out with a simple program to send commands to my
  10354. printer.  When I get it written I will upload it here.  Has some neet
  10355. functions for controlling a Panasonic printer.
  10356.  
  10357. Patrick
  10358. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10359.  
  10360. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C5Q1891 Date: 08/05/89
  10361. From: JIM NICKEL                                            Time: 09:31 pm
  10362.   To: ALL                                                   (Read 137 times)
  10363. Subj: DOS SYSTEM CALLS IN TURBO C 2.0
  10364.  
  10365. My TURBO C 2.0 Reference book says that the system() function will return
  10366. a 0 on sucess or a -1 on failure.  I want to do some simple stuff like
  10367. printing, copying, deleting in the dos environment using the
  10368. system(del *.bak); statement.  I want to see if the operation suceeded or
  10369. failed so I tested the return value of the system function and it is
  10370. always 0.  Can anybody give me an example of what condition would cause
  10371. the system() function to return a -1?
  10372. ---------------
  10373. Following thread
  10374.  
  10375. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C5Q3264 Date: 08/05/89
  10376. From: DAVID NYE                                             Time: 09:54 pm
  10377.   To: JIM NICKEL (Rcvd)                                     (Read 129 times)
  10378. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10379.  
  10380. I believe system() uses int 21h, function 4Bh, the EXEC function.  The
  10381. errors the EXEC function can return are invalid function number, file not
  10382. found, access denied, insufficient memory, invalid environment and invalid
  10383. format, so the -1 returned by system() must reflect some or probably all
  10384. of these.  In other words, if the file or command to execute is found and
  10385. could be executed, it will return 0 even if it didn't do what you wanted
  10386. or aborted with an error message.  If the subprogram or command used
  10387. function 4Ch to terminate and set a return code (as most of the DOS
  10388. commands do), you can get this return code with function 4Dh.  I don't
  10389. recall if TC has a function specifically to do this.  If not you can use
  10390. bdos(0x4D, 0, 0) to return the return code.  You will have to play with it
  10391. to see what conditions return what return codes (or even if it works at
  10392. all -- I haven't tried it personally).  Let me know if it works.
  10393. ---------------
  10394. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10395.  
  10396. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CAR2402 Date: 08/06/89
  10397. From: JIM NICKEL                                            Time: 10:40 pm
  10398.   To: DAVID NYE (Rcvd)                                      (Read 117 times)
  10399. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10400.  
  10401. OK, David, I'll try some stuff in dos to see if I can get a -1 out of
  10402. system().  I wanted to copy one file to another in my c program with the
  10403. system("copy first.txt second.txt"); command and I don't think it returned
  10404. anything other than a 0 regardless if first.txt exists or not.  I could be
  10405. wrong, but I'll keep playing around with it.  Right now, to see if a file
  10406. exists, I first open it, then test the return value of the fopen() for a
  10407. NULL, then close it right away.  BTW, when I do this, and fopen() returns
  10408. a NULL indicating that there is no file present, do I have to fclose() the
  10409. file, or not?  Squack at you later...
  10410. Jim
  10411. ---------------
  10412. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10413.  
  10414. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CBM1240 Date: 08/07/89
  10415. From: JIM NICKEL                                            Time: 06:20 pm
  10416.   To: DAVID NYE (Rcvd)                                      (Read 120 times)
  10417. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10418.  
  10419. I had the following two statements in my C program:
  10420. #include <dos.h>
  10421. int x;
  10422. x=system("fdfed");
  10423. x=bdos(0x4D);
  10424. .
  10425. Actually that's now two lines, but you get the idea.
  10426. In both cases, I set breakpoints after each of the two statements.  In
  10427. both cases, x=0.  When I changed the first statement to system("dir");
  10428. the results were the same.  I have found other ways around my problem, but
  10429. I can't help but wonder what the authors of Turbo C had in mind.
  10430. CUL
  10431. Jim
  10432. ---------------
  10433. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10434.  
  10435. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CD21825 Date: 08/09/89
  10436. From: DAVID NYE                                             Time: 02:30 am
  10437.   To: JIM NICKEL (Rcvd)                                     (Read 116 times)
  10438. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10439.  
  10440. Assuming you have no file called "fdfed", I'd say you've found a compiler
  10441. bug.  If you subscribe to Compu$erve you might post this to Borland's
  10442. Turbo C support SIG and see what they say.
  10443. ---------------
  10444. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10445.  
  10446. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CDC3248 Date: 08/09/89
  10447. From: JIM NICKEL                                            Time: 08:54 am
  10448.   To: DAVID NYE (Rcvd)                                      (Read 116 times)
  10449. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10450.  
  10451. I don't subscribe to Compuserve, but a friend of mine does.  I'll buy
  10452. him a six-pack one night and he'll probably let me come over and play on
  10453. that board for a few minutes.
  10454. By the way, what on earth possesses you to stay uthis early?
  10455. ---------------
  10456. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10457.  
  10458. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CDR1690 Date: 08/09/89
  10459. From: DAVID NYE                                             Time: 10:28 pm
  10460.   To: JIM NICKEL (Rcvd)                                     (Read 111 times)
  10461. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10462.  
  10463. Let me know what their advice is (or if they admit a bug).  Usually I'm
  10464. not up that late.  I don't need all that much sleep -- I can get by on 5
  10465. hours, although I prefer 7.
  10466. ---------------
  10467. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10468.  
  10469. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CEG0228 Date: 08/10/89
  10470. From: ERIC MEYER                                            Time: 12:03 pm
  10471.   To: JIM NICKEL (Rcvd)                                     (Read 118 times)
  10472. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10473.  
  10474. The system() function calls COMMAND.COM to execute your commands and
  10475. COMMAND.COM always returns a 0!  So there isn't any easy way to find
  10476. out the return code from a program executed with system(). -Eric
  10477. ---------------
  10478. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10479.  
  10480. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CKQ0145 Date: 08/16/89
  10481. From: MIKE SZYMANSKI                                        Time: 09:02 pm
  10482.   To: JIM NICKEL (Rcvd)                                     (Read 108 times)
  10483. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10484.  
  10485. the only error that system() considers to be 'errors' are those having to
  10486. do with the inability to execute Command.com. .. if command.com cannot be
  10487. executed or cannot be found (-1) is returned otherwise a 0 (successful
  10488. execution) or a non-zero value in the case where command.com is found but
  10489. the string passed to system() is a NULL string.  Hope this helps!
  10490. ---------------
  10491. ** Current thread: DOS SYSTEM CALLS IN TURBO C 2.0
  10492.  
  10493. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CKS2474 Date: 08/16/89
  10494. From: JIM NICKEL                                            Time: 11:41 pm
  10495.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 110 times)
  10496. Subj: R: DOS SYSTEM CALLS IN TURBO C 2.0
  10497.  
  10498. I guess if I take the LITERAL interpretation of the explanation of the
  10499. system() call that makes sense.  I haven't found an example of something
  10500. that returns anything other than 0, so I bet your explanation is correct.
  10501. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10502.  
  10503. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CAA2908 Date: 08/06/89
  10504. From: DAVOR STARE                                           Time: 06:48 am
  10505.   To: ALL                                                   (Read 107 times)
  10506. Subj: BIOSDISK
  10507.  
  10508. Hi! I need some help. I am using TURBO C 2.0 and I want to format
  10509. diskette. I know that I can do that with BIOSDISK function, but I don't
  10510. know format table for it. Thanks in advance, Davor.
  10511. ---------------
  10512.  
  10513. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CIE3506 Date: 08/14/89
  10514. From: JAY SEIGFREID                                         Time: 10:58 am
  10515.   To: ALL                                                   (Read 101 times)
  10516. Subj: TYPEWRITER
  10517.  
  10518. I am looking for a way to print one character at a time to my printer,
  10519. just like a typewriter.
  10520.  
  10521. I have several programs that send strings after a carrage return but this
  10522. is worthless for filling out forms and such.
  10523.  
  10524. thanks,
  10525.  
  10526. jay
  10527. ---------------
  10528. Following thread
  10529.  
  10530. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CIG1204 Date: 08/14/89
  10531. From: GLEN THOMPSON                                         Time: 12:20 pm
  10532.   To: JAY SEIGFREID (Rcvd)                                  (Read 101 times)
  10533. Subj: R: TYPEWRITER
  10534.  
  10535. Jay,
  10536.  
  10537. You have a basic problem in that most printers won't print anything unless
  10538. it receives an appropriate control character such as a CR, LF, FF or
  10539. similar.  Lasers are even worse since they don't print anything until a
  10540. whole page is received.
  10541.  
  10542. Trying to print spaces is a problem too since the printers try to optimize
  10543. print speed by not moving the print head unless there is data to print.
  10544.  
  10545. glen
  10546. ---------------
  10547. ** Current thread: TYPEWRITER
  10548.  
  10549. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CQL2565 Date: 08/21/89
  10550. From: JAY SEIGFREID                                         Time: 05:42 pm
  10551.   To: GLEN THOMPSON (Rcvd)                                  (Read 99 times)
  10552. Subj: R: TYPEWRITER
  10553.  
  10554. I saw a program today called the typewriter by Power Up! that claims it
  10555. will do what I ask.  I understand the problem with most printers, all I am
  10556. asking is how to do it if it could be done, the simplest approach.
  10557.  
  10558. jay
  10559. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10560.  
  10561. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CIL1724 Date: 08/14/89
  10562. From: GREGORY WILSON                                        Time: 05:28 pm
  10563.   To: ALL                                                   (Read 100 times)
  10564. Subj: DETECTING MODEM RING DURATION.
  10565.  
  10566. I am looking for a way to detect the ring duration using a modem. I need
  10567. to be able to distinguish between a regular ring and a series of short
  10568. rings. I want to make my modem answer only the short rings.
  10569. Any suggestions???
  10570. Gregory Wilson
  10571. ---------------
  10572. Following thread
  10573.  
  10574. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CJL2471 Date: 08/15/89
  10575. From: ERIK DUFEK                                            Time: 05:41 pm
  10576.   To: GREGORY WILSON (Rcvd)                                 (Read 96 times)
  10577. Subj: R: DETECTING MODEM RING DURATION.
  10578.  
  10579. I thought maybe someone would come up with something in the other
  10580. conference where you asked the question but unfortunately not.  I don't
  10581. believe you can detect the length of the ring at the software level.  I
  10582. think the only way to detect a difference in the ring duration is through
  10583. some type of hardware implementation.  You could send the ring signal
  10584. through an isolator and then to a timer.  Put in a level detect to sense
  10585. the DC voltage present on the line when the modem is online.  Use the
  10586. circuit to pull in a relay and keep it engaged.  Use the relay to
  10587. connect/disconnect the phone line from the modem.
  10588. ---------------
  10589. ** Current thread: DETECTING MODEM RING DURATION.
  10590.  
  10591. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CJN1418 Date: 08/15/89
  10592. From: GREGORY WILSON                                        Time: 07:23 pm
  10593.   To: ERIK DUFEK (Rcvd)                                     (Read 95 times)
  10594. Subj: R: DETECTING MODEM RING DURATION.
  10595.  
  10596. Well, maybe I am all wet but I still think that it could be done. When my
  10597. phone rings, my modem sends the string "RING" to my terminal screen. If
  10598. this signal is present during the entire ring then my solution is easy. If
  10599. the signal is only sent at the beginning of the RING then I don't think it
  10600. will be possible. It is still something to think about.
  10601. I have found a solution to my one line BBS/VOICE. The solution is a
  10602. feature of RYBBS that allows me to set up the system to answer the phone
  10603. on the second call (not ring) as long as it is within 50 seconds of the
  10604. first. I just tell my friends to call my number, let it ring, hang up and
  10605. call back.
  10606. Thanks for your input.
  10607. Gregory Wilson
  10608. ---------------
  10609. ** Current thread: DETECTING MODEM RING DURATION.
  10610.  
  10611. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CK10114 Date: 08/16/89
  10612. From: ERIK DUFEK                                            Time: 12:01 am
  10613.   To: GREGORY WILSON (Rcvd)                                 (Read 98 times)
  10614. Subj: R: DETECTING MODEM RING DURATION.
  10615.  
  10616. RBBS used to have the ringback feature also.  I'm not sure if it is still
  10617. there.  I know there were problems at one time with it's implementation.
  10618. Since you are using ringback did you also have the second line installed?
  10619. ---------------
  10620. ** Current thread: DETECTING MODEM RING DURATION.
  10621.  
  10622. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CKB3390 Date: 08/16/89
  10623. From: STEVEN KEY                                            Time: 07:56 am
  10624.   To: GREGORY WILSON (Rcvd)                                 (Read 100 times)
  10625. Subj: R: DETECTING MODEM RING DURATION.
  10626.  
  10627. Gregory,
  10628.  
  10629. I think you may be able to do what you want if your modem sends the Ring
  10630. Detect signal to the com port.  This is line 22 on a DB 25 connector.  You
  10631. should be able to see the status of this line on bit 6 of the modem status
  10632. register, port 3fe on com1 or port 2fe on com2.  Of course, you'll have to
  10633. do your own timimg.
  10634.  
  10635. Steven
  10636. ---------------
  10637. ** Current thread: DETECTING MODEM RING DURATION.
  10638.  
  10639. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CKD0991 Date: 08/16/89
  10640. From: GREGORY WILSON                                        Time: 09:16 am
  10641.   To: ERIK DUFEK (Rcvd)                                     (Read 97 times)
  10642. Subj: R: DETECTING MODEM RING DURATION.
  10643.  
  10644. Yes I did. It was only 3.95/month so I said what the heck.
  10645. Gregory Wilson
  10646. ---------------
  10647. ** Current thread: DETECTING MODEM RING DURATION.
  10648.  
  10649. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CKD1064 Date: 08/16/89
  10650. From: GREGORY WILSON                                        Time: 09:17 am
  10651.   To: STEVEN KEY (Rcvd)                                     (Read 98 times)
  10652. Subj: R: DETECTING MODEM RING DURATION.
  10653.  
  10654. Thanks, I'll let you know if I get it.
  10655. Gregory Wilson
  10656. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10657.  
  10658. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CR12367 Date: 08/22/89
  10659. From: RICHARD YOUNG                                         Time: 12:39 am
  10660.   To: ALL                                                   (Read 104 times)
  10661. Subj: C PROGRAMMING
  10662.  
  10663. NEED THE NAME OF A GOOD INSTRUCTION MANUAL OR TUTORIAL ON C LANGUAGE.
  10664. ---------------
  10665. Following thread
  10666.  
  10667. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CS11884 Date: 08/23/89
  10668. From: ROBERT BALSOVER                                       Time: 12:31 am
  10669.   To: RICHARD YOUNG                                         (Read 105 times)
  10670. Subj: R: C PROGRAMMING
  10671.  
  10672. If you have a Ibm pc background and can program in Basic,  Compute! Books
  10673. Published a book called From Basic to C.  Using examples in Basic it
  10674. shows how to do the same in C.  It then shows somethings that can't be
  10675. done in Basic with C.  The Author uses the Lattice C compilier, but it
  10676. isn't compiler specific.
  10677. Bob
  10678. ---------------
  10679. ** Current thread: C PROGRAMMING
  10680.  
  10681. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CSQ3170 Date: 08/23/89
  10682. From: MIKE SZYMANSKI                                        Time: 09:52 pm
  10683.   To: RICHARD YOUNG                                         (Read 104 times)
  10684. Subj: R: C PROGRAMMING
  10685.  
  10686. Richard, you might want to check out 'The C Workshop' by Charles Pine.  It
  10687. is a tutorial on disk that I have heard is pretty good.  It includes a
  10688. compiler and InfoWorld gave it a decent review.  I don't think it cover's
  10689. ANSI standard, but you can pick that up with supplemental refs like The
  10690. Waite Groups C Bible etc.
  10691. ---------------
  10692. ** Current thread: C PROGRAMMING
  10693.  
  10694. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CSS2174 Date: 08/23/89
  10695. From: PATRICK LEMIRANDE                                     Time: 11:36 pm
  10696.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 103 times)
  10697. Subj: R: C PROGRAMMING
  10698.  
  10699. Message CC'd to:
  10700.      MIKE SZYMANSKI
  10701.      RICHARD YOUNG
  10702.  
  10703. Mike,
  10704.  
  10705.      is 'The C Workshop' a shareware tutorial.
  10706.  
  10707.      I learned to program in C using the tutorial called TUR-C-TU.ZIP on
  10708. this board, and liked it.
  10709.  
  10710. Patrick
  10711. ---------------
  10712. ** Current thread: C PROGRAMMING
  10713.  
  10714. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CWN1522 Date: 08/27/89
  10715. From: MIKE SZYMANSKI                                        Time: 07:25 pm
  10716.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 96 times)
  10717. Subj: R: C PROGRAMMING
  10718.  
  10719. Patrick, the tutorial that I know as 'The C Workshop' is a commercial
  10720. package with a SRP of $79;  I have heard of references to a shareware
  10721. package called "The C Workshop Tutorial" that I believe is different.  I
  10722. have absolutely no idea as to the location of the latter, though!
  10723. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10724.  
  10725. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CWE2757 Date: 08/27/89
  10726. From: RICHARD STONE                                         Time: 10:45 am
  10727.   To: ALL                                                   (Read 100 times)
  10728. Subj: HELP - PROGRAM NAME
  10729.  
  10730. In TurboC, under DOS 3.0 and up, ARGV[0] contains the name of the
  10731. program that's executing. Does anyone know how to obtain it for DOS 2.xx?
  10732. Is there a system call?
  10733. ---------------
  10734. Following thread
  10735.  
  10736. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CWH1639 Date: 08/27/89
  10737. From: ROBERT BALSOVER                                       Time: 01:27 pm
  10738.   To: RICHARD STONE (Rcvd)                                  (Read 100 times)
  10739. Subj: R: HELP - PROGRAM NAME
  10740.  
  10741. Richard
  10742. I seem to remember something that a few people used to do with
  10743. C-64's.  They would read the screen memory.  Why are you checking
  10744. the name of your program anyway, are you checking if they changed
  10745. the name?  You could also add the restiction that the program needs
  10746. 3.0+ to work.  I haven't seen to many computers that use 2.XX, in
  10747. fact I only know of one and thats because it's a original issue right
  10748. down to its outdated bios and 3.0+ doesn't work in it.  If you added
  10749. the restiction I don't think you would be limiting its possible users,
  10750. a high % are already using 3.0+.
  10751. Bob
  10752. ---------------
  10753. ** Current thread: HELP - PROGRAM NAME
  10754.  
  10755. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CWJ1357 Date: 08/27/89
  10756. From: TOM FRANK                                             Time: 03:22 pm
  10757.   To: RICHARD STONE (Rcvd)                                  (Read 99 times)
  10758. Subj: R: HELP - PROGRAM NAME
  10759.  
  10760. Richard,
  10761.  
  10762. I don;t think the program name is available to a DOS call in DOS 2.x -
  10763. even MS will give that as an excuse for some DUMB behaviour in CODEVIEW -
  10764. it can't find its help files under 2.x.
  10765.  
  10766. Tom
  10767. ---------------
  10768. ** Current thread: HELP - PROGRAM NAME
  10769.  
  10770. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CXL2382 Date: 08/28/89
  10771. From: RICHARD STONE                                         Time: 05:39 pm
  10772.   To: ROBERT BALSOVER (Rcvd)                                (Read 98 times)
  10773. Subj: R: HELP - PROGRAM NAME
  10774.  
  10775. The proggets renamed, and I need the name to pick up a config file
  10776. that gets renamed with it. Also, it will run on machines, such as the
  10777. T1000 that has 2.11 in ROM.
  10778.  
  10779. Thanks for the help, anyway.
  10780.  
  10781.                  -- Dick
  10782. ---------------
  10783. ** Current thread: HELP - PROGRAM NAME
  10784.  
  10785. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CXL2435 Date: 08/28/89
  10786. From: RICHARD STONE                                         Time: 05:40 pm
  10787.   To: TOM FRANK (Rcvd)                                      (Read 97 times)
  10788. Subj: R: HELP - PROGRAM NAME
  10789.  
  10790. Thanks anyway...
  10791.            -Dick
  10792. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10793.  
  10794. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CXK2954 Date: 08/28/89
  10795. From: JOHN LOVALLO                                          Time: 04:49 pm
  10796.   To: ALL                                                   (Read 99 times)
  10797. Subj: CONTRACT ENGINEERS WARNING
  10798.  
  10799. The following message is directed to all Milwaukee Area contract engineers
  10800. or those thinking of entering this field.  It is based on my own
  10801. experiences and does not reflect the opinion of ExecPc.
  10802.  
  10803. When you start to work for a contract engineering agency, they will tell
  10804. you anything.  In my case, with BZ Engineering of West Allis (aka
  10805. International Personnel and Recruiting) I was told that my services would
  10806. be marked up 22% to clients.  The contract they wanted me to sign was
  10807. described as a "mere formality", they were really looking out for my best
  10808. interests.  One week of paid vacation was offered after 1 year of
  10809. employment and two weeks after 2 years.
  10810.  
  10811. When my first contract assignment ended, they did nothing to find me
  10812. another assignment.  Nine months later when I answered an ad by IPR, I was
  10813. somewhat suprised to find it was the same old BZ Engineering group.  I
  10814. interviewed with the company they had a "job order" for and decided that I
  10815. was not interested in that job.  Three weeks later I was offered a more
  10816. interesting job directly by the customer (through no intervention of BZ
  10817. Engineering) and agreed to take that job.  In a somewhat misquided sense
  10818. of fairness I decided to book the job through BZ Engineering anyway. After
  10819. seven months this job was over, I found another assignment with the same
  10820. employer in another group.  At that time I found out that the only
  10821. stumbling block to getting the job was the charge rate, - BZ had been
  10822. marking my services up 80%!.  When I tried to get paid vacation from BZ I
  10823. was told that I was not entitled to any, as their was a break in my
  10824. "service" (or is that prostitution) to them.  Really now, how many
  10825. contract assignments last for years on end...
  10826.  
  10827. I then decided to work for another agency whom I know personally which
  10828. will look out for their employees.  BZ Engineering has threatened legal
  10829. action against me and them if I work for the same company for a period of
  10830. one year (one of those "mere formalities" in an employment contract).  As
  10831. a result I had to decline this employment pending my legal action against
  10832. BZ Engineering.
  10833.  
  10834. Moral: If you are approached by BZ Engineering or International
  10835. Placement and Recruiting or another contract agency located in the 7200
  10836. block of Greenfield Ave in West Allis, Milwaukee, run like hell!  Better
  10837. yet, get in touch with me at:
  10838.  
  10839.   Creative Design Industries
  10840.   17135 W. Observatory Rd.
  10841.   New Berlin, WI.  53151
  10842.  
  10843.   Telephone:  785-9006
  10844.  
  10845. ---------------
  10846. Following thread
  10847.  
  10848. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CZP2164 Date: 08/30/89
  10849. From: MIKE SZYMANSKI                                        Time: 08:36 pm
  10850.   To: JOHN LOVALLO (Rcvd)                                   (Read 95 times)
  10851. Subj: R: CONTRACT ENGINEERS WARNING
  10852.  
  10853. I'm sorry that you had such an unfortunate experience with that company.
  10854. One word to you though;  Based on the opinions of several lawyers I have
  10855. had contact with in the employment contract arena, it is a general
  10856. consensus that restrictive employment clauses are at best intimidating
  10857. factors and are very hard to enforce when the employement is your only
  10858. source of income.  An example is the restrictive clauses many franchise
  10859. organizations put in their employment contracts to attempt to keep former
  10860. employees from seeking employement with a competitor.  They may (and
  10861. probably will) sue but they will not get far if the employment is entered
  10862. into after formal termination of the previous employement contractd (be it
  10863. written or otherwise).  Basically stated they can't keep you from being
  10864. engaged with the same or any other company if your contract with them is
  10865. no longer current.  Note: this is not legal advise nor interpretation of
  10866. any laws; I'm merely passing on what I have learnt and heard.  Check out
  10867. your particular situation to see if their are any submerged factors.
  10868. ---------------
  10869. ** Current thread: CONTRACT ENGINEERS WARNING
  10870.  
  10871. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CZQ1775 Date: 08/30/89
  10872. From: JOHN LOVALLO                                          Time: 09:29 pm
  10873.   To: MIKE SZYMANSKI (Rcvd)                                 (Read 95 times)
  10874. Subj: R: CONTRACT ENGINEERS WARNING
  10875.  
  10876. Mike, thanks for the reply.  That is basically what my attorney has said.
  10877. Rather than give them immediate cause to sue, we are taking a slightly
  10878. different approach.  I am be restrained from practicing my trade.  After a
  10879. couple of months of "not working" we are filing a damage suit against BZ
  10880. Engineering for damages.
  10881. -John
  10882. ---------------
  10883. ** Current thread: CONTRACT ENGINEERS WARNING
  10884.  
  10885. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D5Q0477 Date: 09/05/89
  10886. From: MIKE SZYMANSKI                                        Time: 09:07 pm
  10887.   To: JOHN LOVALLO (Rcvd)                                   (Read 92 times)
  10888. Subj: R: CONTRACT ENGINEERS WARNING
  10889.  
  10890. John, 'GOOD WORK IF YOU CAN GET IT'.
  10891. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10892.  
  10893. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CXQ2562 Date: 08/28/89
  10894. From: JEFF WETTER                                           Time: 09:42 pm
  10895.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 99 times)
  10896. Subj: C COMPILER
  10897.  
  10898. Patrick,
  10899.       Where can the C compiler be found?  Or is that something I have to
  10900. purchase.  Thanks, Jeff
  10901. ---------------
  10902. Following thread
  10903.  
  10904. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CYI2150 Date: 08/29/89
  10905. From: PATRICK LEMIRANDE                                     Time: 02:35 pm
  10906.   To: JEFF WETTER (Rcvd)                                    (Read 100 times)
  10907. Subj: R: C COMPILER
  10908.  
  10909. Jeff,
  10910.  
  10911. RE:  "Where can the C compiler be found?
  10912.  
  10913.      I see what you are asking.  The tutorial is based on the commercial
  10914. complier called Turbo C by Borland
  10915.  
  10916.      It sells for $99 new and the number is 1-800-255-8008.
  10917.  
  10918.      The code will run under most compilers since C is a standardized
  10919. language.    I used Let's C compliler and it ran most of the examples.
  10920. There were some code that used prototypes that did not compile and I had
  10921. to write my own structure to access the registers.
  10922.  
  10923.      I needed my version of Lets C through the summer, so if you want to
  10924. pick a copy cheap, just let me know.  I plan to pick up a used copy of
  10925. Turbo C V2.0 when I get the ich to write my next program.
  10926.  
  10927. Patrick
  10928. ---------------
  10929. ** Current thread: C COMPILER
  10930.  
  10931. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CYL0114 Date: 08/29/89
  10932. From: JEFF WETTER                                           Time: 05:01 pm
  10933.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 102 times)
  10934. Subj: C COMPILER
  10935.  
  10936. Patrick,
  10937.            How much is cheap for the Lets C compiler?
  10938.                                              Thanks Jeff
  10939. ---------------
  10940. ** Current thread: C COMPILER
  10941.  
  10942. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CZC1135 Date: 08/30/89
  10943. From: STEVEN KEY                                            Time: 08:18 am
  10944.   To: JEFF WETTER (Rcvd)                                    (Read 100 times)
  10945. Subj: R: C COMPILER
  10946.  
  10947. Jeff,
  10948.  
  10949. Have you tried the c compiler available in the Mahoney collection ? It's
  10950. called ccomp.zip.   This is a version of a compiler that was once a
  10951. straight commercial product, and got pretty good reviews, but fell out of
  10952. the market when QC and TC came along.  It is now shareware or freeware.
  10953.  
  10954. Steven
  10955. ---------------
  10956. ** Current thread: C COMPILER
  10957.  
  10958. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2CZL0855 Date: 08/30/89
  10959. From: JEFF WETTER                                           Time: 05:14 pm
  10960.   To: STEVEN KEY (Rcvd)                                     (Read 94 times)
  10961. Subj: R: C COMPILER
  10962.  
  10963. Steven,
  10964.          No I have not tried the one in the Mahoney but I will download it
  10965. as soon as I am done thanking you for telling me.  Again Thank You  Jeff.
  10966. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  10967.  
  10968. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C^M2076 Date: 08/31/89
  10969. From: JOE VINCENT                                           Time: 06:34 pm
  10970.   To: ALL                                                   (Read 97 times)
  10971. Subj: C LIBRARIES
  10972.  
  10973. Message CC'd to:
  10974.      GRANT ELLSWORTH
  10975.      ALL
  10976.  
  10977. I would like to solicit opinions about C libraries.  Specifically:
  10978.  
  10979.      - Which C library do you use?
  10980.      - Are you satisfied with it?
  10981.      - What do you like about it?
  10982.      - What's missing?
  10983.      - If you had it to do over again, would you buy the same library or
  10984.        a different one?  Which one?
  10985.  
  10986. If I forgot to ask a really incisive question, please feel free to ramble
  10987. at great length.
  10988.  
  10989. Is anybody using any shareware C libraries?  Comments?
  10990.  
  10991.      -=≡{JOE}≡=- (tm)
  10992. ---------------
  10993. Following thread
  10994.  
  10995. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2C^R2368 Date: 08/31/89
  10996. From: ERIK DUFEK                                            Time: 10:39 pm
  10997.   To: JOE VINCENT (Rcvd)                                    (Read 93 times)
  10998. Subj: R: C LIBRARIES
  10999.  
  11000. I only dabble in C so take that for what it's worth.  I use the Mix C
  11001. compiler and library.  It only cost me $20 and so far upgrades have only
  11002. been $5.  It does enough for my small stuff.  If you want to know more
  11003. technical answers I'm not well versed enough to do so.
  11004. ---------------
  11005. ** Current thread: C LIBRARIES
  11006.  
  11007. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D1L1274 Date: 09/01/89
  11008. From: JOE VINCENT                                           Time: 05:21 pm
  11009.   To: ERIK DUFEK (Rcvd)                                     (Read 96 times)
  11010. Subj: R: C LIBRARIES
  11011.  
  11012. Erik, thanks for your response.  I'm using MSC 5.1, QC and TC, but I'm
  11013. looking for a good commercial-quality library beyond that provided with
  11014. the compilers.  I keep reinventing the wheel by writing functions which I
  11015. know must be in somebody's library.
  11016.  
  11017.      -=≡{JOE}≡=- (tm)
  11018. ---------------
  11019. ** Current thread: C LIBRARIES
  11020.  
  11021. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D1P0812 Date: 09/01/89
  11022. From: GRANT ELLSWORTH (Leader)                              Time: 08:13 pm
  11023.   To: JOE VINCENT (Rcvd)                                    (Read 100 times)
  11024. Subj: R: C LIBRARIES
  11025.  
  11026. Joe, I use the plain vanilla libs delivered with my C compilers + those
  11027. deviants of my own devices in their own libs.  However, in previous
  11028. comments in this conference/topic, users made some positive comments on
  11029. some commercial and shareware libs.  Now, if Bob M. only had a hypertext
  11030. scan capability on the message base text .....
  11031.  
  11032. grant
  11033. ---------------
  11034. ** Current thread: C LIBRARIES
  11035.  
  11036. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D1Q2190 Date: 09/01/89
  11037. From: DAVID NYE                                             Time: 09:36 pm
  11038.   To: JOE VINCENT (Rcvd)                                    (Read 99 times)
  11039. Subj: R: C LIBRARIES
  11040.  
  11041. I've played around with CXL, a shareware package with lots of nice window
  11042. stuff -- menus, file picking, data entry screens, as well as mouse
  11043. support, string functions, expanded memory handling, and lots of extra
  11044. keyboard, printer and video functions.  Has gotten rave reviews.
  11045. ---------------
  11046. ** Current thread: C LIBRARIES
  11047.  
  11048. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D2J1218 Date: 09/02/89
  11049. From: GLEN THOMPSON                                         Time: 03:20 pm
  11050.   To: JOE VINCENT (Rcvd)                                    (Read 94 times)
  11051. Subj: R: C LIBRARIES
  11052.  
  11053. Joe,
  11054.  
  11055. I've used the CXL library from Mike Smedley, available on this board.  It
  11056. offers a nice window package, input forms, menus, and some general
  11057. utilities.  All in all, it's a nice cohesive package.  Good consistency
  11058. between all the routines.  As an example, if you enable a mouse, the
  11059. filename pick window will allow either a mouse pick or keyboard entry.
  11060.  
  11061. The small model.obj files and documentation can be downloaded,
  11062. resistration gets all the other models and source code.
  11063.  
  11064. The documentation is a little weak and the source is not the clearest C
  11065. code or super well documented.  The demo program with it serves as the
  11066. best example of how to use the functions.
  11067.  
  11068. Do like I did, wrote a program using it to confirm that it works well and
  11069. then registered it.
  11070.  
  11071. Mike also has a BBS in San Antonio that provide support and is programmer
  11072. oriented.  Current version is 5.0 but 5.1 is expected out soon.
  11073.  
  11074. The only thing missing from the library that I would like is some
  11075. file/database routines like the Ctree package.
  11076.  
  11077. glen
  11078. ---------------
  11079. ** Current thread: C LIBRARIES
  11080.  
  11081. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D2L2747 Date: 09/02/89
  11082. From: JOE VINCENT                                           Time: 05:45 pm
  11083.   To: GRANT ELLSWORTH (Rcvd)                                (Read 94 times)
  11084. Subj: R: C LIBRARIES
  11085.  
  11086. So far, I've found much of what I've needed in my own code, various
  11087. collections of C routines/utilities/programs I've downloaded and books
  11088. about C in the Vincent Archives.  I picked up a book today, "The Waite
  11089. Group's QuickC Bible", which looks really good.  If nothing else, it's a
  11090. well-organized reference book for QC/MSC.  It even provides a
  11091. compatibility guide with each function description (i.e., will it work
  11092. with MSC3, MSC 4, MSC 5, QC, TC, ANSI and UNIX V?).
  11093.  
  11094. I see that there are two other messages waiting, so perhaps someone else
  11095. has a suggestion.
  11096.  
  11097.      -=≡{JOE}≡=- (tm)
  11098. ---------------
  11099. ** Current thread: C LIBRARIES
  11100.  
  11101. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D2L2940 Date: 09/02/89
  11102. From: JOE VINCENT                                           Time: 05:49 pm
  11103.   To: DAVID NYE                                             (Read 94 times)
  11104. Subj: R: C LIBRARIES
  11105.  
  11106. Dave, thanks for the pointer to CXL.  I'll look for it.  Usually, without
  11107. a good mention from someone, I don't download libraries.  They're usually
  11108. several hundred K and not worth the download time.  Your good words about
  11109. CXL compel me to get it.  Thanks again.
  11110.  
  11111.      -=≡{JOE}≡=- (tm)
  11112. ---------------
  11113. ** Current thread: C LIBRARIES
  11114.  
  11115. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D2L3037 Date: 09/02/89
  11116. From: JOE VINCENT                                           Time: 05:50 pm
  11117.   To: GLEN THOMPSON (Rcvd)                                  (Read 95 times)
  11118. Subj: R: C LIBRARIES
  11119.  
  11120. Glen, you're the second person to mention CXL.  I'll pick it up pronto.
  11121. Thanks for the response!
  11122.  
  11123.      -=≡{JOE}≡=- (tm)
  11124. ---------------
  11125. ** Current thread: C LIBRARIES
  11126.  
  11127. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2D3S2120 Date: 09/03/89
  11128. From: GRANT ELLSWORTH (Leader)                              Time: 11:35 pm
  11129.   To: JOE VINCENT (Rcvd)                                    (Read 91 times)
  11130. Subj: R: C LIBRARIES
  11131.  
  11132. Joe, I have found any of the Waite group's books a really handy reference.
  11133. You can't lose by getting any one of them related to a topic of interst to
  11134. you.  Grant
  11135. ---------------
  11136. ** Current thread: C LIBRARIES
  11137.  
  11138. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DAK1719 Date: 09/06/89
  11139. From: GLEN THOMPSON                                         Time: 04:28 pm
  11140.   To: JOE VINCENT (Rcvd)                                    (Read 93 times)
  11141. Subj: R: C LIBRARIES
  11142.  
  11143. Joe,
  11144.  
  11145. I see that Mike has uploaded the latest version of CXL.  I haven't been
  11146. able to download it yet to see the changes but y'll probably like it.
  11147.  
  11148. glen
  11149. ---------------
  11150. ** Current thread: C LIBRARIES
  11151.  
  11152. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DAL1352 Date: 09/06/89
  11153. From: JOE VINCENT                                           Time: 05:22 pm
  11154.   To: GLEN THOMPSON (Rcvd)                                  (Read 93 times)
  11155. Subj: R: C LIBRARIES
  11156.  
  11157. >>I see that Mike has uploaded the latest version of CXL.  I haven't been
  11158. >>able to download it yet to see the changes but y'll probably like it.
  11159.  
  11160. Yes, I noticed the uploads.  There's no C source with them, but source
  11161. apparently is available with registration.  I'm always a bit wary of using
  11162. precompiled libraries without knowing what's in them.  I would prefer to
  11163. compile the source myself.  Still, it's a shareware alternative to the
  11164. commercial stuff.
  11165.  
  11166.      -=≡{JOE}≡=- (tm)
  11167. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11168.  
  11169. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DBP2598 Date: 09/07/89
  11170. From: OTTO PORTER                                           Time: 08:43 pm
  11171.   To: GRANT ELLSWORTH (Rcvd)                                (Read 110 times)
  11172. Subj: PRINTING IN 'C'
  11173.  
  11174. I need a little generic advice on printing in c-language programs.
  11175. I have been using and learning 'c' for about a year now but haven't
  11176. had a need for printing except in the most cursory ways.  I am now
  11177. writing a program which involves a lot of printing and have read
  11178. everything in my 'c' reference library concerning this subject which is
  11179. very little.  i.e., what are the preferred functions (fprintf, cprintf,
  11180. fputs, etc.) for print routines and also whether it is better to use
  11181. an assembler routine.  Also, how do I bypass the dos buffer and still
  11182. print a whole line or string at a time.
  11183. Would appreciate any general advice on this and/or a good reference
  11184. on the subject.  Thanks.....
  11185.  
  11186. Otto Porter...
  11187. ---------------
  11188. Following thread
  11189.  
  11190. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DCB0213 Date: 09/08/89
  11191. From: PATRICK LEMIRANDE                                     Time: 07:03 am
  11192.   To: OTTO PORTER (Rcvd)                                    (Read 113 times)
  11193. Subj: R: PRINTING IN 'C'
  11194.  
  11195. Otto,
  11196.  
  11197.      here is how I do it, if this helps:
  11198.  
  11199.  
  11200. /*   Sends one character to printer  */
  11201.  
  11202. setprt(code)
  11203. char code;
  11204. {
  11205.    FILE *printer;
  11206.    printer = fopen("PRN","w");
  11207.    putc(code,printer);
  11208.    fclose(printer);
  11209. }
  11210.  
  11211.  
  11212. /*   Sends a string to the printer   */
  11213.  
  11214. setprint(code)
  11215. char code[6];
  11216. {
  11217.    FILE *printer;
  11218.    prtprblm();
  11219.    if (resultk) printer = fopen("PRN","w");
  11220.    if (resultk) printf("The printer is ready");
  11221.    if (resultk) fprintf(printer,"
  11222. ---------------
  11223. ** Current thread: PRINTING IN 'C'
  11224.  
  11225. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DCN2906 Date: 09/08/89
  11226. From: GRANT ELLSWORTH (Leader)                              Time: 07:48 pm
  11227.   To: OTTO PORTER (Rcvd)                                    (Read 107 times)
  11228. Subj: R: PRINTING IN 'C'
  11229.  
  11230. Otto, Pat L. illustrated 2 of many techniques.  However, let's review some
  11231. basics:
  11232.  
  11233. 1.  The differences among Fprintf(), printf(), and cprintf() ...
  11234.  
  11235.     fprintf() sends printlines to designated file (or device, such as
  11236.       the printer, as in Pat's example)
  11237.     printf() sends printlines to "stdout" which is typically the console
  11238.       screen (the default), but which may be re-directed to files
  11239.     cprintf() sends printlines to the console directly --- typically
  11240.       bypassing dos - the library routine may use BIOS calls, and some
  11241.       compilers will supply one which can optionally write directly to
  11242.       video ram (mine, TC2.0, does not do this, but one which I've looked
  11243.       at does do this --- cxan't remember which one right now)
  11244.  
  11245. 2.  Character-by-character printing vs whole line/whole string printing
  11246.     depends very much on the compiler's implementation of the xprintf()
  11247.     functions ...
  11248.  
  11249.     MSC 5.0/5.1 uses a DOS function to write a whole line as a unit in
  11250.       its xprintf() function
  11251.     TC2.0 uses its own fputc() function as the direct output writer ...
  11252.       the printf() function builds the string and then calls the library
  11253.       fputc() function to write one character at a time;  the exception
  11254.       is the cprintf() function which issues direct BIOS calls instead
  11255.     WATCOM C (7.0), my "production" compiler seems to do it much like TC
  11256.  
  11257. To my perception, the only place that whole-string printing makes a
  11258. noticable difference is in the displays on the console screen thru
  11259. dos calls.
  11260.  
  11261. To "equallize" the performance of all 3 compilers I noted above, I wrote
  11262. my own xprintf() library function in C to supercede those used in the
  11263. baseline compiler libraries.  I use vsprintf() to build the output strings
  11264. and then call DOS with the appropriate IOCTL function.  This is what
  11265. worked best for me ... since I was doing a lot of printf() write to the
  11266. console screen.  For use directly with the printer, I don't see that there
  11267. is enough of a difference between character-by-character and whole string
  11268. processing to justify the extra effort to assure the whole string method
  11269. ... especially if the printer has a built-in buffer.  The CPU is running a
  11270. lot faster than the printer --- even if it's an antique 4.77 mhz 8088 CPU.
  11271.  
  11272. Hope this helps matters for you.   Grant
  11273. ---------------
  11274. ** Current thread: PRINTING IN 'C'
  11275.  
  11276. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DCR2901 Date: 09/08/89
  11277. From: ROBERT BALSOVER                                       Time: 10:48 pm
  11278.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 103 times)
  11279. Subj: R: PRINTING IN 'C'
  11280.  
  11281. In some versions of C the printer already has a stream assigned to it,
  11282. stdprn.  try using fprintf(stdprn, format_string, parms);  and see if it
  11283. gags on it.
  11284. Bob
  11285. ---------------
  11286. ** Current thread: PRINTING IN 'C'
  11287.  
  11288. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDA2781 Date: 09/09/89
  11289. From: PATRICK LEMIRANDE                                     Time: 06:46 am
  11290.   To: ROBERT BALSOVER (Rcvd)                                (Read 102 times)
  11291. Subj: R: PRINTING IN 'C'
  11292.  
  11293. Robert,
  11294.  
  11295. RE:> fprintf(stdprn, format_string, parms);
  11296.  
  11297.      now this is starting to get fun.
  11298.  
  11299.      Thanks.
  11300.  
  11301. Patrick
  11302. ---------------
  11303. ** Current thread: PRINTING IN 'C'
  11304.  
  11305. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDF0985 Date: 09/09/89
  11306. From: JOHN HEIM                                             Time: 11:16 am
  11307.   To: OTTO PORTER (Rcvd)                                    (Read 97 times)
  11308. Subj: R: PRINTING IN 'C'
  11309.  
  11310. Otto,
  11311.  
  11312. If this is a really serious printing program, you might consider sending
  11313. the stuff to file before printing it.  This allows you to print multiple
  11314. copies of the report easily and to reprint it if something goes wrong.
  11315.  
  11316. Use a batch file to run the report program. ie. ...
  11317.  
  11318.    REM Run the report to generate a file called REPORT.TXT
  11319.    REPORT
  11320.    REM Print the file
  11321.    PRINT REPORT.TXT
  11322.  
  11323. This technique does require you to clear out the report files once in a
  11324. while or you'll fill up your disk.
  11325.  
  11326. Another advantage is your program doesn't have to wait for the printer to
  11327. catch up.
  11328.  
  11329. John Heim
  11330.  
  11331. PS.  Multi-user systems (DOS networks and Unix workstations) require you to
  11332. do things this way because you
  11333. can't assume that no one else is using the printer.  They usually include
  11334. a 'spooler' that sends files to the printer in the order that they are
  11335. recieved.
  11336. ---------------
  11337. ** Current thread: PRINTING IN 'C'
  11338.  
  11339. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDG2961 Date: 09/09/89
  11340. From: OTTO PORTER                                           Time: 12:49 pm
  11341.   To: PATRICK LEMIRANDE (Rcvd)                              (Read 96 times)
  11342. Subj: R: PRINTING IN 'C'
  11343.  
  11344. Pat,
  11345.  
  11346. Thanks for the help and especially the prompt reply.  This will
  11347. get me going.
  11348. ---------------
  11349. ** Current thread: PRINTING IN 'C'
  11350.  
  11351. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDH0035 Date: 09/09/89
  11352. From: OTTO PORTER                                           Time: 01:00 pm
  11353.   To: GRANT ELLSWORTH (Rcvd)                                (Read 96 times)
  11354. Subj: R: PRINTING IN 'C'
  11355.  
  11356. Grant,
  11357. Thanks for the info.  I especially like the approach of building the
  11358. output using vsprintf and then using IOCTL.  All this info is the
  11359. general stuff I was hoping for.  None of my books really touch on
  11360. this much.
  11361.  
  11362. One other thing.  Must I use low-level, and or bios routines to get
  11363. by the DOS buffers?
  11364.  
  11365. Thanks again,
  11366. Otto...
  11367. ---------------
  11368. ** Current thread: PRINTING IN 'C'
  11369.  
  11370. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDH0248 Date: 09/09/89
  11371. From: OTTO PORTER                                           Time: 01:04 pm
  11372.   To: JOHN HEIM (Rcvd)                                      (Read 95 times)
  11373. Subj: R: PRINTING IN 'C'
  11374.  
  11375. John,
  11376.  
  11377. Thanks for the prompt reply.  I have been using part of your idea in
  11378. order to test (writing the output to a file) the program but hadn't
  11379. thought of doing it for the actual implementation.  I LIKE the idea
  11380. and am going to try it out.
  11381.  
  11382. Thanks again,
  11383. Otto...
  11384. ---------------
  11385. ** Current thread: PRINTING IN 'C'
  11386.  
  11387. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDM3327 Date: 09/09/89
  11388. From: GRANT ELLSWORTH (Leader)                              Time: 06:55 pm
  11389.   To: OTTO PORTER (Rcvd)                                    (Read 95 times)
  11390. Subj: R: PRINTING IN 'C'
  11391.  
  11392. Otto, I think use of the DOS IOCTL function will suffice ... bypassing the
  11393. dos buffers is not necessary here and buys nothing in thruput.  (I'm
  11394. assuming your focus is the PRN directed output).  Grant
  11395. ---------------
  11396. ** Current thread: PRINTING IN 'C'
  11397.  
  11398. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DDP2842 Date: 09/09/89
  11399. From: OTTO PORTER                                           Time: 08:47 pm
  11400.   To: GRANT ELLSWORTH (Rcvd)                                (Read 99 times)
  11401. Subj: R: PRINTING IN 'C'
  11402.  
  11403. Grant,
  11404. Actually, I am not sure yet whether I am having a problem with the
  11405. printer's internal buffer or the DOS buffer.  The program pauses
  11406. during execution to allow a paper change.  However the Formfeed I issue
  11407. in the program just before the pause is not being acted on by the printer
  11408. until the keypress which is supposed to resume execution.  This is
  11409. most undesirable behaviour. <grin>.  That's why I suspect the DOS buffer.
  11410. I am using the fprintf function to handle the actual printing 'by string.'
  11411. Otto...
  11412. ---------------
  11413. ** Current thread: PRINTING IN 'C'
  11414.  
  11415. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DGR2795 Date: 09/12/89
  11416. From: GRANT ELLSWORTH (Leader)                              Time: 10:46 pm
  11417.   To: OTTO PORTER (Rcvd)                                    (Read 98 times)
  11418. Subj: R: PRINTING IN 'C'
  11419.  
  11420. Otto, your description of the form-feed behavior reads like it has more to
  11421. do with the printer than the dos buffers.  The printer may have its own
  11422. little buffer and be running 1 cycle behind what you and the cpu believe
  11423. is the case.  I have the same problem with my NEC pinwriter P3.
  11424.  
  11425. BTW, I think "writing to a file" , which some of our other correspondents
  11426. have suggested, IS definitely the way to do it.  Grant
  11427. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11428.  
  11429. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DCL1924 Date: 09/08/89
  11430. From: KENNETH AVILA                                         Time: 05:32 pm
  11431.   To: ALL                                                   (Read 98 times)
  11432. Subj: DB_VISTA III
  11433.  
  11434. Has anybody heard and/or used this database development system for their
  11435. computer?  I am thinking of using it for some applications that I am
  11436. programming for and would like to get some user feedback or some
  11437. recommendations for other similar products.  Thank you
  11438. ---------------
  11439.  
  11440. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DEK1171 Date: 09/10/89
  11441. From: RICHARD POELING                                       Time: 04:19 pm
  11442.   To: ALL                                                   (Read 101 times)
  11443. Subj: #1)POWER C  #2)WORD PROCESSING
  11444.  
  11445. Hello, I'm a new member to this conference, but I've been using 'C' on and
  11446. off for about two years.  I originally taught myself the language on a
  11447. Tandy 6000 Xenix system, thus my exposure to writing code in the MSDOS
  11448. environment (and PC) is a bit limited.  I have read through most of the
  11449. messages that are in this section and feel that I should be able to fit in
  11450. without any problem.  Unlike most of you who use either Microsoft's C
  11451. compiler or Quick C I purchased Mix's Power C.  I have found that it can
  11452. do nearly everything (if not everything) that the others can do with the
  11453. exclusion of its lack of being able to produce modules other than Medium
  11454. size.  But before you go and buy yourself a copy OR their C/Utilities
  11455. program, you might want to consider the following situation.  For some
  11456. reason (I haven't been able to find out yet), my system sort of locks up
  11457. when I use the compiler or the utilities.  I'm still able to enter
  11458. commands, however programs compiled with the compiler don't run.  All my
  11459. other programs run without a problem, but ever once in a while those
  11460. programs compiled with Power C do nothing but give me the prompt back.  I
  11461. haven't yet contacted Mix Software about this, because I wasn't sure if
  11462. any of my other programs did it (meaning that it might be my computer -
  11463. which it still could be).  However it seems strange that I only have
  11464. problem with Power C compiled software.  The only way I am able to get
  11465. those programs to execute properly is to reboot the system or use the
  11466. tsrcom program that I found on the Mahoney collection.  What it does is
  11467. mark the memory when I boot up.  Then if I start having problems with the
  11468. programs compiled under Power C, I use the release program which I think
  11469. puts the system back the way it was when I booted up.  I then mark the
  11470. memory again with the tsrcom programs and I'm up and running again.  For
  11471. the meantime I am able to live with this inconvenience of having to
  11472. release and mark the memory each time the programs freak out.  Although I
  11473. the lock up problem is transient, there is definitly one thing that always
  11474. causes the Power C compiled programs not to work.  There is a menu program
  11475. in the Mahoney Collection called Power Menu.  I like this program very
  11476. much because it makes launching programs very, very easy.  However if I
  11477. use it, none of the Power C compiled programs will execute.  I have to do
  11478. that release/mark thing, but only after I complete exit Power Menu, which
  11479. I don't like having to do.  So I guess what I'm saying is that Power C is
  11480. a good compiler that is real inexpensive, but there might be some bugs.
  11481. (By the way if anyone might know what the problem is, I'm all ears!) Now
  11482. that I've finished my little speech, I have a question to throw to those
  11483. of you who are a bit more experienced than I am.  It pertains to word
  11484. processors and the way they handle the editing of data.  Since I am not a
  11485. programmer by trade I am unfamiliar with many of the tricks that famous
  11486. guru's use to efficiently handle various problems.  So when I decided to
  11487. sit down and write a text editor to handle a specific need that I have I
  11488. was stumped when it came to the logic needed to handle inserting and
  11489. deleting text from the document and screen without eating up lots of
  11490. memory.
  11491.  
  11492.  
  11493.  
  11494. To make a long story short, how do word processing programs efficiently
  11495. use memory so that when a person needs to insert/delete a character or a
  11496. whole sentence or even an entire page that it doesn't get the text all
  11497. messed up? I have some ideas of how it might be down.  I thought that
  11498. maybe it might be that for each paragraph there is a pointer to the
  11499. beginning, however, I can't figure out how the program could easily make
  11500. room within a given paragraph without loosing the surrounding text.
  11501.  
  11502.  
  11503.  
  11504. If anyone can follow what I'm getting at, I'd really enjoy hearing from
  11505. you.
  11506.  
  11507.  
  11508.  
  11509. Thanks.
  11510.  
  11511. Rick.
  11512.  
  11513.  
  11514.  
  11515. ---------------
  11516. Following thread
  11517.  
  11518. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DF10219 Date: 09/11/89
  11519. From: ERIK DUFEK                                            Time: 12:03 am
  11520.   To: RICHARD POELING (Rcvd)                                (Read 98 times)
  11521. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11522.  
  11523. Rick, I have also purchased Mix's Power C as an inexpensive compiler.  I'd
  11524. venture to say I'm not as experienced as you since I've only finished one
  11525. real short program.  But I'm also ahead of you since it compiled and works
  11526. perfectly.  I can't tell you why the program doesn't work on your system.
  11527. It sounds like you may have some incorrect code somewhere.  Do you have a
  11528. later version than 1.10?  I just received an offer in the mail for 3.0 I
  11529. believe it was.
  11530.  
  11531. Are you calling via PCP?  The reason I asked is I'd be happy to try and
  11532. compile your program using my version and see what happens.  I usually
  11533. have a program called BackMail running so that I can transfer programs
  11534. privately, quickly, cheaply and unattended.  Let me know if I can be of
  11535. any help.
  11536. ---------------
  11537. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11538.  
  11539. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DF10460 Date: 09/11/89
  11540. From: ERIK DUFEK                                            Time: 12:07 am
  11541.   To: RICHARD POELING (Rcvd)                                (Read 97 times)
  11542. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11543.  
  11544. Almost forgot to answer your word processing question.  Look up the issue
  11545. of PC Magazine that has the editor TED in it.  There is some of the
  11546. philosophy of how to program text tools along with the description of the
  11547. TED program.
  11548. ---------------
  11549. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11550.  
  11551. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNQ1473 Date: 09/19/89
  11552. From: JIM MONROE                                            Time: 09:24 pm
  11553.   To: RICHARD POELING (Rcvd)                                (Read 94 times)
  11554. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11555.  
  11556. I ALSO HAVE THE POWERC C PACKAGE FROM MIX.  I have not had any problems
  11557. with the programs. If possible can you upload one tof these to me and I
  11558. will try it here to see if the same problem exsists.
  11559. Jim
  11560. //
  11561. s
  11562. ---------------
  11563. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11564.  
  11565. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNQ1620 Date: 09/19/89
  11566. From: JIM MONROE                                            Time: 09:27 pm
  11567.   To: ERIK DUFEK (Rcvd)                                     (Read 94 times)
  11568. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11569.  
  11570. I also have the powerc c compiler and have no problem. Is it possible to
  11571. get a mix group together on this board?
  11572. ---------------
  11573. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11574.  
  11575. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNR3544 Date: 09/19/89
  11576. From: ERIK DUFEK                                            Time: 10:59 pm
  11577.   To: JIM MONROE (Rcvd)                                     (Read 92 times)
  11578. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11579.  
  11580. >Is it possible to
  11581. >get a mix group together on this board?
  11582.  
  11583. Bob is waiting for the move before he does any more work in modifying the
  11584. topic areas.  But I think the C area is an appropriate area.  C is meant
  11585. to be portable so any discussion should usually be relevant with any
  11586. compiler.
  11587.  
  11588. I'm not a serious user of the program yet.  I've used it a few times, but
  11589. nothing complicated.  I've downloaded a few of the C tutors though in
  11590. anticipation of more serious use in the future.
  11591. ---------------
  11592. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11593.  
  11594. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DPD2900 Date: 09/20/89
  11595. From: JIM MONROE                                            Time: 09:48 am
  11596.   To: ERIK DUFEK (Rcvd)                                     (Read 99 times)
  11597. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11598.  
  11599. I think that both a discussion group here on the BBS as well as some
  11600. degree of personnel interaction may be valuable. Lets try it later in the
  11601. fall.
  11602. ---------------
  11603. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11604.  
  11605. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DPS3196 Date: 09/20/89
  11606. From: ERIK DUFEK                                            Time: 11:53 pm
  11607.   To: JIM MONROE (Rcvd)                                     (Read 93 times)
  11608. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11609.  
  11610. In any type of C discussion, I expect I'll be the slow guy.
  11611. ---------------
  11612. ** Current thread: #1)POWER C  #2)WORD PROCESSING
  11613.  
  11614. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DRP1898 Date: 09/22/89
  11615. From: RICHARD POELING                                       Time: 08:31 pm
  11616.   To: JIM MONROE (Rcvd)                                     (Read 96 times)
  11617. Subj: R: #1)POWER C  #2)WORD PROCESSING
  11618.  
  11619. After testing some things on my system, I have concluded that my programs
  11620. run fine when I compile them with Power C.  The source of all my problems
  11621. seems to be the Utilities that I bought from Mix.  I don't know if it is a
  11622. problem with my computer not liking the way their stuff was compiled or
  11623. what exactly, but eventually I find it.
  11624. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11625.  
  11626. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DEQ3130 Date: 09/10/89
  11627. From: MICHAEL KUMBERA                                       Time: 09:52 pm
  11628.   To: ALL                                                   (Read 92 times)
  11629. Subj: NEURAL NET'S
  11630.  
  11631. Hi,
  11632.  
  11633.   Does and one have access to BIX. I would like a program I heard they
  11634. had. It's a Neural net. that uses back-propagation to learn. The issue was
  11635. Oct. 87. Also if anyone has any other neural network programs the have
  11636. written in C please upload them. (I did see the TTT*.C programs)
  11637.  
  11638.  
  11639. thanks,
  11640.     Michael Kumbera
  11641. ---------------
  11642. Following thread
  11643.  
  11644. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJS1407 Date: 09/15/89
  11645. From: JOHN HEIM                                             Time: 11:23 pm
  11646.   To: MICHAEL KUMBERA (Rcvd)                                (Read 95 times)
  11647. Subj: R: NEURAL NET'S
  11648.  
  11649. Michael,
  11650.  
  11651. I signed up for BIX a few weeks ago to talk to Borland's tech support
  11652. staff.  I don't really know how to find the stuff your asking for but I
  11653. guess I can figure it out.  I'll let you know when I find it.
  11654.  
  11655. John Heim
  11656.  
  11657. PS.  I signed up for BIX but I also got a membership on CompuServe where
  11658. Borland also suppies a support staff.  I've used CompuServe almost
  11659. exclusively since because I found it infinately more user friendly and
  11660. intuitive.  I say thsi not necessarily for your benefit, Michael, but just
  11661. to let anyone who might be paging through here know.
  11662. ---------------
  11663. ** Current thread: NEURAL NET'S
  11664.  
  11665. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DKK1262 Date: 09/16/89
  11666. From: MICHAEL KUMBERA                                       Time: 04:21 pm
  11667.   To: JOHN HEIM (Rcvd)                                      (Read 92 times)
  11668. Subj: R: NEURAL NET'S
  11669.  
  11670. Thanks for the reply John.
  11671.  
  11672. I found some information that might help you locate the file.
  11673. The Issue was Oct. 87 and the program name is bpsim.c also the artical
  11674. name is "Back-Propagation, A Generalized delta learning rule".
  11675.  
  11676.  
  11677. Thanks for taking the time to look for the file.
  11678.  
  11679. Michael Kumbera
  11680. ---------------
  11681. ** Current thread: NEURAL NET'S
  11682.  
  11683. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNP1072 Date: 09/19/89
  11684. From: JOHN HEIM                                             Time: 08:17 pm
  11685.   To: MICHAEL KUMBERA (Rcvd)                                (Read 92 times)
  11686. Subj: NEURAL NET'S
  11687.  
  11688. Michael,
  11689.  
  11690. I got on BIX and looked for the code listings for October 87.  Well, I
  11691. couldn't find them.  I found Oct '88 and even Oct '89 but not Oct '87.  I
  11692. think they're not there.  Maybe there's someone on this BBS that uses BIX
  11693. alot who can say for sure.  I looked around for quite a while before
  11694. giving up.  Do you have some reason for believing it was there?
  11695.  
  11696. John Heim
  11697. ---------------
  11698. ** Current thread: NEURAL NET'S
  11699.  
  11700. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNR0139 Date: 09/19/89
  11701. From: MICHAEL KUMBERA                                       Time: 10:02 pm
  11702.   To: JOHN HEIM (Rcvd)                                      (Read 96 times)
  11703. Subj: R: NEURAL NET'S
  11704.  
  11705. John,
  11706.  
  11707. The reason I think it's there is that the BYTE article states that the
  11708. program can be downloaded from BIX. I would like to thank you for looking
  11709. though.
  11710.  
  11711.  
  11712. Michael Kumbera
  11713. ---------------
  11714. ** Current thread: NEURAL NET'S
  11715.  
  11716. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DVQ2172 Date: 09/26/89
  11717. From: JOHN HEIM                                             Time: 09:36 pm
  11718.   To: MICHAEL KUMBERA (Rcvd)                                (Read 96 times)
  11719. Subj: R: NEURAL NET'S
  11720.  
  11721. Michael,
  11722.  
  11723. It's really been bugging me that I couldn't find your BIX stuff.  I'm
  11724. going to poke around again when I get the time.  If you have success
  11725. through other means let me know.  I was thinking that they might remove
  11726. code listings after a certain period of time.
  11727.  
  11728. John
  11729. ---------------
  11730. ** Current thread: NEURAL NET'S
  11731.  
  11732. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2E5N1869 Date: 10/05/89
  11733. From: MICHAEL KUMBERA                                       Time: 07:31 pm
  11734.   To: JOHN HEIM (Rcvd)                                      (Read 103 times)
  11735. Subj: R: NEURAL NET'S
  11736.  
  11737. John,
  11738.  
  11739.  Sorry about the delay in replying to you message...
  11740.  
  11741.  I managed to find a copy of bpsim.c about 2 day's ago. A systems
  11742. programmer had a copy of it in here directory for several years.
  11743. I asked here for any Neural Network programs she had and she sent it to
  11744. me.
  11745.  
  11746. THANKS A LOT,
  11747.  
  11748. Mike Kumbera
  11749. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11750.  
  11751. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DF12360 Date: 09/11/89
  11752. From: JAMES MACHADO                                         Time: 01:39 am
  11753.   To: ALL                                                   (Read 101 times)
  11754. Subj: PROBLEMS RUNNING QUICK-C
  11755.  
  11756. Hi i'm wondering if anybody has had a problem getting the Quick-C
  11757. environment to run on an XT with Phenix BIOS running MS-DOS 3.2 (yes it is
  11758. a clone). i've been able to run it on other XT's (also clones) but not my
  11759. own. QCL works, i've used it but when i load QC my hard drive whirs, the
  11760. screen blanks then it locks up. please help
  11761.  james
  11762. ---------------
  11763. Following thread
  11764.  
  11765. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DIP1736 Date: 09/14/89
  11766. From: OTTO PORTER                                           Time: 08:28 pm
  11767.   To: JAMES MACHADO (Rcvd)                                  (Read 103 times)
  11768. Subj: R: PROBLEMS RUNNING QUICK-C
  11769.  
  11770. James,
  11771. I don't know what version you are using, but if it is version 1.00 there
  11772. was a problem a disk control■≥ler ( I fºMforget which).■≥  MS issued
  11773. a maintanence upgrade (v 1.01b) which fixed it.  I don't ■≥know ■≥if
  11774. ■≥you ca■┬√ still get it from them √■≥ without ■≥going to version
  11775. 2.
  11776. Otto P■≥.
  11777. ■≥
  11778. ---------------
  11779. ** Current thread: PROBLEMS RUNNING QUICK-C
  11780.  
  11781. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DS13355 Date: 09/23/89
  11782. From: JAMES MACHADO                                         Time: 12:55 am
  11783.   To: OTTO PORTER (Rcvd)                                    (Read 100 times)
  11784. Subj: R: PROBLEMS RUNNING QUICK-C
  11785.  
  11786. i have 1.00 and 2, i only had the problem with 2, i ended up changing my
  11787. dos from an old generic to dri's e've heard of stranger things, but not
  11788. many. thanks
  11789.  james
  11790. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11791.  
  11792. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DFS2697 Date: 09/11/89
  11793. From: RICHARD POELING                                       Time: 11:44 pm
  11794.   To: ERIK DUFEK (Rcvd)                                     (Read 96 times)
  11795. Subj: POWER C COMPILER & C/UTILITIES
  11796.  
  11797. Thanks for the reply, Erik.  In regards to the version of my Power C
  11798. compiler I received their 1.3.0 upgrade about two months ago.  At the same
  11799. time I also purchased their C/Utilities Toolchest.  It is a collection of
  11800. Unix-like programs that I enjoy using, because most of my computer
  11801. experience is on that type of operating system.  Anyway, I am positive
  11802. that my 'C' source code is accurate because the problems that I am having
  11803. are too transient - I can never tell when it will bomb.
  11804.  
  11805. Actually, I don't usually have too much problem with my programs.  Most of
  11806. my problems occur when I use their Unix-like utilities that they compiled
  11807. with Power C (at least I assume they used their own compiler).  So ther
  11808. must be a bug either in the code they wrote for their utilities or in
  11809. their compiler.
  11810.  
  11811. I think what intrigues me the most is the way that I'm able to get my
  11812. system up and running by using that tsrcom program that is on this BBS.
  11813. Since I run the program in my autoexec.bat file all I have to do is type
  11814. in the command release (which clears out the memory up to the point where
  11815. it was marked) and then run the command mark (so that it re-marks the
  11816. memory in case of another bomb).
  11817.  
  11818. I only wish I knew why I am having this strange problem with just Mix's
  11819. programs.  It seems to me that they didn't test their stuff very
  11820. thoroughly.
  11821. ---------------
  11822. Following thread
  11823.  
  11824. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DG11015 Date: 09/12/89
  11825. From: ERIK DUFEK                                            Time: 01:16 am
  11826.   To: RICHARD POELING (Rcvd)                                (Read 97 times)
  11827. Subj: R: POWER C COMPILER & C/UTILITIES
  11828.  
  11829. Are you sure it's Mix's code that is causing the trouble and not yours?
  11830. As far as the Toolchest, I believe they only marketed it.  I believe the
  11831. actual code belongs to someone else.  But I'm not sure about that.
  11832. ---------------
  11833. ** Current thread: POWER C COMPILER & C/UTILITIES
  11834.  
  11835. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DGS3152 Date: 09/12/89
  11836. From: RICHARD POELING                                       Time: 11:52 pm
  11837.   To: ERIK DUFEK (Rcvd)                                     (Read 94 times)
  11838. Subj: R: POWER C COMPILER & C/UTILITIES
  11839.  
  11840. I'm sure my code is fine.  Not only that, but like I said before, the
  11841. problem occurs more frequently when I run THEIR programs which I have no
  11842. control over.  So the bugs are with their software.  This weekend I'm
  11843. going to run some test and determine whether it is the compiler that has
  11844. bugs or the C/Utilities that do, or both.
  11845. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  11846.  
  11847. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DHG0587 Date: 09/13/89
  11848. From: VICTOR DURA                                           Time: 12:09 pm
  11849.   To: ALL                                                   (Read 102 times)
  11850. Subj: CALLABLE EDITOR IN C
  11851.  
  11852.   Does anyone know of a shareware editor module, written in C, that
  11853. can be called from within a C program? All I need are very simple
  11854. editing functions, nothing fancy. What I would like to do is
  11855. edit a text buffer by passing a pointer to an editor module. E.g.
  11856. the statement  "status=editor(buffptr);" would execute a full
  11857. screen editor on the text at buffptr.
  11858.   Thanks for your help.
  11859. ---------------
  11860. Following thread
  11861.  
  11862. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DHS0692 Date: 09/13/89
  11863. From: GRANT ELLSWORTH (Leader)                              Time: 11:11 pm
  11864.   To: VICTOR DURA (Rcvd)                                    (Read 104 times)
  11865. Subj: R: CALLABLE EDITOR IN C
  11866.  
  11867. Here;s something that might help.  Borland used to sell, and may still
  11868. sell, the Editor Tool Box for Turbo Pascal (4.0).  I don't think they up-
  11869. graded it for 5.0 and/or 5.5.  However, functionally, it can be modified
  11870. to provide this thing you want --- that was the intention of the product.
  11871. Now, you need/want something in C --- so you could run a Pascal to C
  11872. translator (Like TPTC17G(?).ZIP in mahoney collection) against the PASCAL
  11873. source to give you a C version you could work with.  Grant
  11874. ---------------
  11875. ** Current thread: CALLABLE EDITOR IN C
  11876.  
  11877. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DIQ2990 Date: 09/14/89
  11878. From: ROBERT BALSOVER                                       Time: 09:49 pm
  11879.   To: GRANT ELLSWORTH (Rcvd)                                (Read 97 times)
  11880. Subj: R: CALLABLE EDITOR IN C
  11881.  
  11882. Have you ever tried to use those Pascal->C translators?  They puke on
  11883. the code more often then not.  They are not very useful.
  11884. Bob
  11885. ---------------
  11886. ** Current thread: CALLABLE EDITOR IN C
  11887.  
  11888. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJA1482 Date: 09/15/89
  11889. From: VICTOR DURA                                           Time: 06:24 am
  11890.   To: GRANT ELLSWORTH (Rcvd)                                (Read 97 times)
  11891. Subj: R: CALLABLE EDITOR IN C
  11892.  
  11893. Thanks for the info Grant, I see what I can find on the Tool Box..Vic
  11894. ---------------
  11895. ** Current thread: CALLABLE EDITOR IN C
  11896.  
  11897. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJC1241 Date: 09/15/89
  11898. From: STEVEN KEY                                            Time: 08:20 am
  11899.   To: VICTOR DURA (Rcvd)                                    (Read 97 times)
  11900. Subj: R: CALLABLE EDITOR IN C
  11901.  
  11902. Victor,
  11903.  
  11904. Ed Ream ( advertizes in DDJ) used to sell an editor ( with source )
  11905. written in C. It was called RED, I think.  You might give him a call or
  11906. drop him a note.
  11907.  
  11908. Steven
  11909. ---------------
  11910. ** Current thread: CALLABLE EDITOR IN C
  11911.  
  11912. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJP1645 Date: 09/15/89
  11913. From: GRANT ELLSWORTH (Leader)                              Time: 08:27 pm
  11914.   To: ROBERT BALSOVER (Rcvd)                                (Read 96 times)
  11915. Subj: R: CALLABLE EDITOR IN C
  11916.  
  11917. Bob, there was ONE good one of the whole batch ... and that was TPTC17 of
  11918. May 88 = from Sam Smith, Tool Shop BBS in Phoenix, AZ.  I think the file
  11919. is still here in the Mahoney Collection.  It did have some shortcomings,
  11920. but it was SOOOO much better than the others.  And I don't think it puked
  11921. on most stuff.   There are some obtuse and arcane constructs it doesn't
  11922. handle very well, however (nested structures, untyped variables). But, I
  11923. found that the C code it produced was not far from what was needed for  a
  11924. clean C compile and execution.  Also, the author released the SOURCE for
  11925. that version so you could modify it to meet your needs (source was in TP),
  11926.   grant
  11927. ---------------
  11928. ** Current thread: CALLABLE EDITOR IN C
  11929.  
  11930. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DK40892 Date: 09/16/89
  11931. From: ROBERT BALSOVER                                       Time: 04:14 am
  11932.   To: GRANT ELLSWORTH (Rcvd)                                (Read 95 times)
  11933. Subj: R: CALLABLE EDITOR IN C
  11934.  
  11935. Grant,
  11936. I dunno.  I only used Sam's program, I never looked at any others.
  11937. I was attempting to translate the TPascal Editor toolbox and it puked.
  11938. Did he continue developement of his program or shelf it?
  11939. Bob
  11940. ---------------
  11941. ** Current thread: CALLABLE EDITOR IN C
  11942.  
  11943. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DK41916 Date: 09/16/89
  11944. From: ROBERT BALSOVER                                       Time: 04:31 am
  11945.   To: VICTOR DURA (Rcvd)                                    (Read 95 times)
  11946. Subj: R: CALLABLE EDITOR IN C
  11947.  
  11948. Victor,
  11949. There is a file in the collection called TURBBOOK.ZIP.  It contains the
  11950. source from Al stevens Book Turbo C screen O/I (etc. something like
  11951. that)  I have that book and in it he wrote a routine that is exactly
  11952. what you asked for.  The source is for TSR's, Windows etc.  The file
  11953. would have the correct book name if you want to pick it up.  I've
  11954. seen it lately on the bookshelfs so you shouldn't have problems finding
  11955. it.  I do recommend the book but it is written for TC 1.0 so you
  11956. have to make adjustments if you wish to do TSR's with a later version
  11957. of TC.  It otherwise needs no further corrections.
  11958. Bob
  11959. ---------------
  11960. ** Current thread: CALLABLE EDITOR IN C
  11961.  
  11962. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DKS1246 Date: 09/16/89
  11963. From: GRANT ELLSWORTH (Leader)                              Time: 11:20 pm
  11964.   To: ROBERT BALSOVER (Rcvd)                                (Read 98 times)
  11965. Subj: R: CALLABLE EDITOR IN C
  11966.  
  11967. Bob, I think tptc17 of may 3(?) 88 was the last shareware version.  The
  11968. source to it was also distributed.  That was the version I was referring
  11969. to.  No, I did not try it out on Borland's Editor Toolbox, but I did use
  11970. it to translate a complex MVS performance measurement tool which I
  11971. developed in TP3.0.  THere were some problems because of the complex
  11972. structures in code and data.  I do remember that a prior version to
  11973. TPTC17(g) of May 88 did "puke" on any complicated pascal program.
  11974.  
  11975. What version did you use - (date and version id)?
  11976.  
  11977. BTW, Sam has not totally abandoned the translator.  I understand it was
  11978. purchased by a company (purchase had Sam attached to it) and that Sam
  11979. is improving it over time with a commercial release as the target.
  11980.  
  11981. You could check with Sam (call the Tool Shop) and find out what current
  11982. plans are.    Grant
  11983. ---------------
  11984. ** Current thread: CALLABLE EDITOR IN C
  11985.  
  11986. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DM13002 Date: 09/18/89
  11987. From: ROBERT BALSOVER                                       Time: 12:50 am
  11988.   To: GRANT ELLSWORTH (Rcvd)                                (Read 93 times)
  11989. Subj: R: CALLABLE EDITOR IN C
  11990.  
  11991. Grant,
  11992. I used what I think was the May '88 version. I can't be sure because I
  11993. erased it when it puked several times. I decided it was not advanced
  11994. enough for my use.
  11995. I have seen a comercial TP2C translator advertised in DDJ June '89.
  11996. Pg #9 is Programmers Paradise's ad. It lists with them for $199.
  11997. I wonder if that is Sam's work.
  11998. Any time I try to call the Tool Shop it is busy.
  11999. Bob
  12000. ---------------
  12001. ** Current thread: CALLABLE EDITOR IN C
  12002.  
  12003. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNC2722 Date: 09/19/89
  12004. From: VICTOR DURA                                           Time: 08:45 am
  12005.   To: STEVEN KEY (Rcvd)                                     (Read 92 times)
  12006. Subj: R: CALLABLE EDITOR IN C
  12007.  
  12008. Steve, Thanks for the info. I'll check it out...Vic
  12009. ---------------
  12010. ** Current thread: CALLABLE EDITOR IN C
  12011.  
  12012. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNC2830 Date: 09/19/89
  12013. From: VICTOR DURA                                           Time: 08:47 am
  12014.   To: ROBERT BALSOVER (Rcvd)                                (Read 93 times)
  12015. Subj: R: CALLABLE EDITOR IN C
  12016.  
  12017. Robert
  12018. Thanks for the tip. I dl and check it out.
  12019. Vic
  12020. ---------------
  12021. ** Current thread: CALLABLE EDITOR IN C
  12022.  
  12023. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNM0451 Date: 09/19/89
  12024. From: GRANT ELLSWORTH (Leader)                              Time: 06:07 pm
  12025.   To: ROBERT BALSOVER (Rcvd)                                (Read 94 times)
  12026. Subj: R: CALLABLE EDITOR IN C
  12027.  
  12028. TP2C is not Sam's commercial version.  I think it is the one put out by
  12029. Chien(?) Associates in New Orleans.  I noticed an ad from them last winter
  12030. when S's s/w was still called TPC or TP2C as well.  Sam and I had a short
  12031. dialogue on his bbs about it ... he knew nothing about Chien or that TP2C.
  12032.  
  12033. BTW, I think any hang you may get in the May 88 version can be easily
  12034. fixed if you also have a Pascal Compiler and the TPTC 17 sources.
  12035.  
  12036. Also, I note that I have to put my machine in autodial for an average of
  12037. 50 mins to get into the Tool Shop ... it certainly is a popular BBS out
  12038. there in the southwest.   Grant
  12039. ---------------
  12040. ** Current thread: CALLABLE EDITOR IN C
  12041.  
  12042. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNR0939 Date: 09/19/89
  12043. From: ROBERT BALSOVER                                       Time: 10:15 pm
  12044.   To: GRANT ELLSWORTH (Rcvd)                                (Read 95 times)
  12045. Subj: R: CALLABLE EDITOR IN C
  12046.  
  12047. Grant,
  12048. Unfortunately I don't have a Pascal compiler, I never saw a need for it.
  12049. With all of the good Pascal source out there I would certainly be
  12050. willing to pay for a fully functioning translator, but I guess there
  12051. isn't enough people like me out there or there would be a package
  12052. available.  I can program in Pascal, so I could do it manually but
  12053. it takes too long even with a half functioning translator.
  12054. Bob
  12055. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12056.  
  12057. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJR2496 Date: 09/15/89
  12058. From: JOHN ABATTE                                           Time: 10:41 pm
  12059.   To: ALL                                                   (Read 94 times)
  12060. Subj: DEREFERENCING POINTERS
  12061.  
  12062. What exactly does it mean to dereference a pointer. I'm new to C and I've
  12063. heard the term several times, but I haven't the foggiest idea what it
  12064. means or what it's used for. I'm taking a second-level course at the local
  12065. college and the question was brought up, but the instructor didn't give a
  12066. very good explanation. I'd appreciate it if anyone could clarify this for
  12067. me Thanks for the help.
  12068. Ciao for now...John
  12069. ---------------
  12070.  
  12071. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DJS2501 Date: 09/15/89
  12072. From: JOHN HEIM                                             Time: 11:41 pm
  12073.   To: ALL                                                   (Read 93 times)
  12074. Subj: STUFF
  12075.  
  12076. In case anyone missed my previous message, I'd like to reiterate that if
  12077. anyone out there wants to get Borland tech support from a BBS I'd suggest
  12078. you go for CompuServe instead of BIX.  I've found it infinately more
  12079. intuitive and user friendly.
  12080.  
  12081. BBS support is a very useful tool.  If you've ever tried discribing your
  12082. code to someone on the phone you may be able to imagine how convenient
  12083. being able to upload a message could be.  You can include source code,
  12084. output listing, commentary etc.
  12085.  
  12086. One more thing, I subscribe to a magazine called *The C Users Journal*.
  12087. It's a great mag and I'd highly recommend it.  It's much better than DDJ
  12088. or Computer Journal.  Anybody know of any other good mags we should be
  12089. aware of?
  12090.  
  12091. John Heim
  12092. ---------------
  12093.  
  12094. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DK10817 Date: 09/16/89
  12095. From: RICHARD POELING                                       Time: 12:13 am
  12096.   To: ALL                                                   (Read 96 times)
  12097. Subj: C & ASSEMBLY LANGUAGE BBS'S
  12098.  
  12099. I am interested in locating other BBS's that have a good 'C' programming
  12100. conference section.  I would also like to find one that deals with
  12101. Assembly language in the MSDOS environment.  Does anyone know of any?
  12102. Thanks.
  12103. Rick.
  12104. ---------------
  12105. Following thread
  12106.  
  12107. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNP1616 Date: 09/19/89
  12108. From: JOHN HEIM                                             Time: 08:26 pm
  12109.   To: RICHARD POELING (Rcvd)                                (Read 93 times)
  12110. Subj: R: C & ASSEMBLY LANGUAGE BBS'S
  12111.  
  12112. Rick,
  12113.  
  12114. I'm sure CompuServe has conferences on both C and Assembly.  It'll cost you
  12115. some bucks to use though.  Most of the people I know that spend a lot of
  12116. time on CS use a program that logs them on, downloads the messages they're
  12117. interested in and logs them off automatically.  It's available from
  12118. CompuServe.  I don't use CS all that much except to ask Borland's tech
  12119. support staff questions so I don't know that much about it.
  12120.  
  12121. John
  12122. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12123.  
  12124. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DKK2078 Date: 09/16/89
  12125. From: MICHAEL KUMBERA                                       Time: 04:34 pm
  12126.   To: ALL                                                   (Read 93 times)
  12127. Subj: C++
  12128.  
  12129. If any of you get a chance to use C++ do it. It adds some great new
  12130. functions to C. I recently got the book "Using C++" by Bruce Eckel
  12131. (Osborne McGraw-Hill) and it gives a good explination on how to use C++.
  12132. Their discussion of using OBJECTS is well done but they could explain
  12133. function overloading better. C++ seems like the best programming language
  12134. since C.
  12135.  
  12136.  
  12137. Michael Kumbera
  12138. ---------------
  12139. Following thread
  12140.  
  12141. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 3AMF2747 Date: 06/18/90
  12142. From: GREGORY WILSON                                        Time: 11:45 am
  12143.   To: ALL                                                   (Read 68 times)
  12144. Subj: C++
  12145.  
  12146. Could someone tell me in 500 words or less what the advantage is in using
  12147. C++ over C.
  12148. Is it more portable?
  12149. Is it faster?
  12150. Will regular C programs compile under C++ compilers?
  12151. Are there any standards in place for C++?
  12152. Is MSC planning on adding C++ to their product?
  12153. Now that I finnaly have a handle on C, is it worth my time to learn C++?
  12154.  
  12155. I would appreciate any information you could give.
  12156. Thanks in advance!!
  12157. Gregory Wilson
  12158. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12159.  
  12160. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNQ0696 Date: 09/19/89
  12161. From: JIM FISCHER                                           Time: 09:11 pm
  12162.   To: ALL                                                   (Read 93 times)
  12163. Subj: REPORT WRITING
  12164.  
  12165. Can anybody give me some advice as to editing data used to print a report
  12166. written in 'C'.  I need to know how to edit a numeric field whose length
  12167. can be from 0 to 999,999,999. I need to know how to insert the commas
  12168. between the numbers if the field is long enough to require them.  This
  12169. report is to be printed not displayed on screen.
  12170.                                        Thanks,
  12171.                                            Jim
  12172. ---------------
  12173. Following thread
  12174.  
  12175. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DNS3163 Date: 09/19/89
  12176. From: PAUL MCKENZIE                                         Time: 11:52 pm
  12177.   To: JIM FISCHER (Rcvd)                                    (Read 91 times)
  12178. Subj: R: REPORT WRITING
  12179.  
  12180. Jim, I have a function that returns a comma formatted number.  It works
  12181. with either negative or positive values.  I have the code at my place of
  12182. work, so I cannot get my hands on it until tomorrow (Wednesday).
  12183. The ANSI prototype to the routine is as follows:
  12184.     char *comma_fmt(double num, char *buf)
  12185. where num is the number to format, and buf is a pointer to the buffer that
  12186. will store the formatted number.  The routine also returns the pointer to
  12187. the buffer.
  12188.                                  Paul  McKenzie
  12189. ---------------
  12190. ** Current thread: REPORT WRITING
  12191.  
  12192. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DP11456 Date: 09/20/89
  12193. From: PAUL MCKENZIE                                         Time: 12:24 am
  12194.   To: PAUL MCKENZIE (Rcvd)                                  (Read 96 times)
  12195. Subj: R: REPORT WRITING
  12196.  
  12197. Oops, Got the prototype confused.  The call is as follows:
  12198. char *comma_fmt(char *buf1, char *buf2)
  12199. where buf1 is a pointer to a string representing the number to be
  12200. formatted, and buf2 is a pointer to the buffer where the formatted number
  12201. is to reside.  The routine requires you to convert the original number to
  12202. a string yourself.  You can use sprintf() or your own number to string
  12203. routine.  Here is an example:
  12204.      int num = 23456;
  12205.      char buf2[10]
  12206.      char temp[7];
  12207.      sprintf(temp,"%d",num);
  12208.      comma_fmt(temp,buf2);
  12209.      fprintf(stdprn,"%s",buf2);
  12210.                                         Paul McKenzie
  12211. ---------------
  12212. ** Current thread: REPORT WRITING
  12213.  
  12214. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DPN1096 Date: 09/20/89
  12215. From: JIM FISCHER                                           Time: 07:18 pm
  12216.   To: PAUL MCKENZIE (Rcvd)                                  (Read 97 times)
  12217. Subj: REPORT WRITING
  12218.  
  12219.  Thanks much for your help, we'll give it a try and let you know the
  12220. results.
  12221.  
  12222. Thanks again, Jim
  12223. ---------------
  12224. ** Current thread: REPORT WRITING
  12225.  
  12226. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DQ22927 Date: 09/21/89
  12227. From: PAUL MCKENZIE                                         Time: 02:48 am
  12228.   To: JIM FISCHER (Rcvd)                                    (Read 92 times)
  12229. Subj: R: REPORT WRITING
  12230.  
  12231. Jim, I have uploaded COMMAFMT.ZIP on the Mahoney Collection.  This should
  12232. take care of your problem.
  12233.                                  Paul
  12234. ---------------
  12235. ** Current thread: REPORT WRITING
  12236.  
  12237. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DQL1636 Date: 09/21/89
  12238. From: JIM FISCHER                                           Time: 05:27 pm
  12239.   To: PAUL MCKENZIE (Rcvd)                                  (Read 99 times)
  12240. Subj: REPORT WRITING
  12241.  
  12242.  Paul, much thanks and salutations to you! I'll D/L the file and check it
  12243. out tonight. Really appreciate your help, I owe you one.
  12244.  
  12245. Best regards, Jim
  12246. ---------------
  12247. ** Current thread: REPORT WRITING
  12248.  
  12249. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2EFS1435 Date: 10/11/89
  12250. From: PAUL MCKENZIE                                         Time: 11:23 pm
  12251.   To: JIM FISCHER (Rcvd)                                    (Read 93 times)
  12252. Subj: R: REPORT WRITING
  12253.  
  12254. Jim, I haven't gotten back to you in a few weeks.  Did the function solve
  12255. your problem?
  12256.                                    Paul McKenzie
  12257. ---------------
  12258. ** Current thread: REPORT WRITING
  12259.  
  12260. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2EGN2595 Date: 10/12/89
  12261. From: JIM FISCHER                                           Time: 07:43 pm
  12262.   To: PAUL MCKENZIE (Rcvd)                                  (Read 102 times)
  12263. Subj: REPORT WRITING
  12264.  
  12265.  Yes, thank-you, the function worked like a charm. I'm now presently using
  12266. your function in my program at work.
  12267.  
  12268. Thanks and best regards, Jim
  12269. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12270.  
  12271. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DS52363 Date: 09/23/89
  12272. From: JOHN LLOYD                                            Time: 05:39 am
  12273.   To: ALL                                                   (Read 94 times)
  12274. Subj: B-TO-C
  12275.  
  12276. A short time ago I downloaded a programs from the Mahoney section called B
  12277. B-to-C.ZIP.  It was for a friend trying to learn C.  While it ran on a
  12278. "Hello World" program, the code generated did not look like any C I have
  12279. seen.  Output seemed to be an intermediate code which needs further
  12280. translation.  I am not a programmer, and could not explain what was going
  12281. on.  First guess is that the program (B-TO-C) was not a complete utility
  12282. by itself, and perhaps files, or librarys were missing.  Anyone know
  12283. anything about this file???  How to use it???  Is there more of it???
  12284. Thanx
  12285. ---------------
  12286. Following thread
  12287.  
  12288. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DV51941 Date: 09/26/89
  12289. From: JOHN LLOYD                                            Time: 05:32 am
  12290.   To: ALL                                                   (Read 93 times)
  12291. Subj: B-TO-C
  12292.  
  12293. Well, I didn't luck out on the B-TO-C.  Does anyone know of a shareware or
  12294. public domain program that with convert, even loosly, a GWBASIC program to
  12295. C source.  A friend is trying to learn C and feels that if he could write
  12296. a small basic program, convert it and study the resultant source code, it
  12297. would help him to understand C more easily.
  12298. ---------------
  12299. ** Current thread: B-TO-C
  12300.  
  12301. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DVQ1861 Date: 09/26/89
  12302. From: GRANT ELLSWORTH (Leader)                              Time: 09:31 pm
  12303.   To: JOHN LLOYD (Rcvd)                                     (Read 94 times)
  12304. Subj: R: B-TO-C
  12305.  
  12306. I remember seeing something named BAS2C.xxx or BASTOC.xxx in the mahoney
  12307. collection some many moons ago.  Check these out.  Also, you might try the
  12308. hypertext scan to look for "BAS" and " C ".  Grant
  12309. ---------------
  12310. ** Current thread: B-TO-C
  12311.  
  12312. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DW52154 Date: 09/27/89
  12313. From: JOHN LLOYD                                            Time: 05:35 am
  12314.   To: GRANT ELLSWORTH (Rcvd)                                (Read 95 times)
  12315. Subj: R: B-TO-C
  12316.  
  12317. Thanks, I will look for the ones mentioned.  Already did the search,
  12318. without results cept for b-to-c.
  12319. ---------------
  12320. ** Current thread: B-TO-C
  12321.  
  12322. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWL3286 Date: 09/27/89
  12323. From: GRANT ELLSWORTH (Leader)                              Time: 05:54 pm
  12324.   To: JOHN LLOYD (Rcvd)                                     (Read 93 times)
  12325. Subj: R: B-TO-C
  12326.  
  12327. It's possible that I saw those other BASIC-TO-C translator(s) on another
  12328. BBS ... and recalling that I saw them at all was an archeaological exped-
  12329. ition.  I suggest you try accessing "THE TOOL SHOP" in Phoenix, AZ
  12330. (accisible via PCPURSUIT) at 602-279-2673.  The Tool SHop also has a
  12331. commendable upload set --- not as elaborate or deep as the one here on
  12332. EXECPC, of course, but it has a different focus (C and pgming tools).  Be
  12333. prepared to wait a LONG WAIT on redials to get connected - that bbs is
  12334. real popular out in that part of the West.  Grant
  12335. ---------------
  12336. ** Current thread: B-TO-C
  12337.  
  12338. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DX51891 Date: 09/28/89
  12339. From: JOHN LLOYD                                            Time: 05:31 am
  12340.   To: GRANT ELLSWORTH (Rcvd)                                (Read 91 times)
  12341. Subj: R: B-TO-C
  12342.  
  12343. Thanks again.  I was getting ready to try the New York Board that is the
  12344. home of 'The List', as it is supposed to be a C support system as well.
  12345. If you have a chance to look at the B-to-C in the Mahoney collecting, you
  12346. might find it interesting, and perhaps could shed some light on the
  12347. meaning of the resultant code.   It generates code familiar in structure
  12348. to C, but the functions in the generated code are not standard C.  It
  12349. seems to be needing a library to go with it, or require further
  12350. translation.  I don't know.
  12351. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12352.  
  12353. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DSB1745 Date: 09/23/89
  12354. From: AMERICA WEST                                          Time: 07:29 am
  12355.   To: ALL                                                   (Read 106 times)
  12356. Subj: PRO-C
  12357.  
  12358. Has anyone out there had any experience with PRO-C from Vestronix?
  12359. We have purchased and are using it to generate C code, we are generating
  12360. applications that have data files compatible with dBase III+ so we are
  12361. using DBCIII+ routines from Lattice.  The code generator seems to
  12362. generate good C code (lots of it!).  I have a lot of experience
  12363. programming in Basic and just a rudimentary knowledge of C.  I can usually
  12364. determine what a C program is doing by reading the source code, but I am
  12365. nowhere near proficient in generating C code.  What have been your
  12366. experiences with this package?  Have there been any major problems with
  12367. the code that it generates?  Any comments would be greatly appreciated.
  12368. Jim Arner
  12369. America West C&E, Inc.
  12370. 311 Washburn Drive
  12371. Rock Springs, WY 82901
  12372. 307-382-5663
  12373. FAX-382-7323
  12374. ---------------
  12375. Following thread
  12376.  
  12377. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DUK1178 Date: 09/25/89
  12378. From: ROBERT BALSOVER                                       Time: 04:19 pm
  12379.   To: AMERICA WEST (Rcvd)                                   (Read 104 times)
  12380. Subj: R: PRO-C
  12381.  
  12382. Jim, I have been considering PRO-C, I'd like to here opinions about it
  12383. and anything anyone else tells you.
  12384. Thanks  Bob
  12385. ---------------
  12386. ** Current thread: PRO-C
  12387.  
  12388. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 323K2077 Date: 02/03/90
  12389. From: DENNIS DODSON                                         Time: 04:34 pm
  12390.   To: JOHN ABATTE (Rcvd)                                    (Read 84 times)
  12391. Subj: PRO-C
  12392.  
  12393. John,
  12394. I'm using Pro-C and if you (S)earch previous messages you`ll see that
  12395. there has been some discussions and queries in the past.  As far as your
  12396. question goes, I think Pro-C is a valuable development tool for new
  12397. applications.  The generated source code is very good and easy to follow
  12398. and most of the time requires few modifications and runs right 'out of the
  12399. shute' to accomplish the programming task.  Of course a source code gerer-
  12400. ator (spelling) will not do everything for you, but it sure makes the
  12401. development time drastically cut.  We paid $499 for the product early in
  12402. 1989, but I've heard that they`re working on a new release, maybe that's
  12403. why the price has dropped.  I don't know what other information to offer
  12404. to you, but if you can give me an idea of your programming requirements
  12405. maybe I can help in your decision.  As far as we're concerned though,
  12406. Pro-C has been a good investment for us and we are anxiously awaiting
  12407. any new releases.
  12408.  
  12409. Dennis
  12410. ---------------
  12411. ** Current thread: PRO-C
  12412.  
  12413. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 324L0447 Date: 02/04/90
  12414. From: JOHN ABATTE                                           Time: 05:07 pm
  12415.   To: DENNIS DODSON (Rcvd)                                  (Read 80 times)
  12416. Subj: PRO-C
  12417.  
  12418.  
  12419. Hi Dennis
  12420.  
  12421.     Thanks for the info regarding Pro-C. I did do a search for previous
  12422. messages on Pro-C, but only came up with 3 messages. My understanding of
  12423. it is that it is primarily for developing database applications. Is this
  12424. accurate, or does it do more than that? I'm also curious about its
  12425. learning curve. Is it fairly easy to use, or does it require a lot of
  12426. effort to learn?
  12427.  
  12428.     I'm planning to make a trip to the local library to see if I can
  12429. locate any magazine reviews of it.
  12430.  
  12431.     Thanks again for the reply. I guess it would be a good idea to call
  12432. them and ask about their upgrade policy if they are planning a new
  12433. release soon.
  12434.  
  12435. John.
  12436. ---------------
  12437. ** Current thread: PRO-C
  12438.  
  12439. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 325K2044 Date: 02/05/90
  12440. From: DENNIS DODSON                                         Time: 04:34 pm
  12441.   To: JOHN ABATTE (Rcvd)                                    (Read 88 times)
  12442. Subj: PRO-C
  12443.  
  12444. John,
  12445.  
  12446.      Yes, Pro-C is only used for generating database applications.  The
  12447. four types of application programs that you can generate are 1) screen
  12448. programs, 2) menu programs, 3) report programs, and 4) batch (file update)
  12449. programs.  Very 'database-like' in the program design phase.If you are
  12450. considering it for any other reason, forget it.  It is not a general
  12451. purpose C code generator.  It is compatible with Quick C, MSC, Turbo C,
  12452. Watcom, and Zortech C compilers.  The file managers supported are C-Isam,
  12453. Btrieve, C-Tree, dBase III+, and sequential ASCII file access.  Has a very
  12454. powerful and rich programmer's toolbox package (again database
  12455. application-
  12456. like).  Lots of windowing routines and even has a on the fly 'help' appli-
  12457. cation that is embedded in your source code that can be developed and
  12458. maintained from the generated .exe file with the choice of your favorite
  12459. text editor.  Very helpful in business applications.
  12460.  
  12461.      I use it primarily here at work for generating applications.  It
  12462. saves
  12463. me 90% of the 'grunt' coding.  Like I said, some programs have to be
  12464. 'tweaked' after source code generation to put all the 'bells and whistles'
  12465. in, but once you learn the source code generated for the 4 types of pro-
  12466. grams, this becomes a somewhat simple and automatic task.  The shell if
  12467. kind of nice.  Lotus type menus with a (C)ompile item that automatically
  12468. allows you to edit, compile/link, and test your program with one keypress.
  12469. Very user friendly with lots of on-line help.
  12470.  
  12471.      I started out with it as a very 'novice' and confused C programmer.
  12472. Have really learned a lot of sophisticated coding techniques and C
  12473. principles from the generated source code.  It is a good learning tool
  12474. for the beginning C programmer.
  12475.  
  12476.      As far as reviews, I seem to remember in a early '89 PC Mag or PC
  12477. Com-
  12478. uting, it was a 'best of class' for program generators.
  12479.  
  12480. Hope this information answers your questions.
  12481.  
  12482. Dennis
  12483. ---------------
  12484. ** Current thread: PRO-C
  12485.  
  12486. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 32BR3540 Date: 02/07/90
  12487. From: JOHN ABATTE                                           Time: 10:59 pm
  12488.   To: DENNIS DODSON (Rcvd)                                  (Read 89 times)
  12489. Subj: PRO-C
  12490.  
  12491.  
  12492. Hi Dennis
  12493.  
  12494.     Thanks again for the feedback on Pro-C. I did some checking locally
  12495. and found a store that is supposedly getting it in a couple of days, so
  12496. I may bug them for a demo to evaluate it firsthand before making a move
  12497. on it. I still need to do a bit more thinking on it. I appreciate your
  12498. help tremendously. Its always good to hear from someone who's used a
  12499. product before jumping in with both feet first (cold-Turkey).
  12500.  
  12501. Muchas Gracias!!                              John.
  12502. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12503.  
  12504. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DSI2036 Date: 09/23/89
  12505. From: ERIC WILSON                                           Time: 02:33 pm
  12506.   To: ALL                                                   (Read 98 times)
  12507. Subj: FUNCTIONS
  12508.  
  12509.  Does anyone know where I can get some type of sorting and searching
  12510. functions. If there are no functions written a title to a good book that
  12511. discusses this topic would be a great help.
  12512.    Thanx in advance !
  12513. ---------------
  12514. Following thread
  12515.  
  12516. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DSR0425 Date: 09/23/89
  12517. From: GRANT ELLSWORTH (Leader)                              Time: 10:07 pm
  12518.   To: ERIC WILSON (Rcvd)                                    (Read 97 times)
  12519. Subj: R: FUNCTIONS
  12520.  
  12521. Eric, some of the compilers have built-in library functions for searching
  12522. and sorting - e.g. the Turbo C 2.0 compiler has qsort() and bsearch() (a
  12523. binary search routine).  Books on sorting and searhing techniques are also
  12524. available: Knuth, Donald, Sorting and Searching (Art of Programming Vol 3)
  12525. is a classic on the subject.  Also see, The C Toolbox, by William Hunt, or
  12526. Algorithms, by Robert Sedgewick.  Some of the "Advanced C" type books I
  12527. have seen on the shelves of technical book stores also have some sample
  12528. sorting and searching algorithms written in C.  Hope these comments help.
  12529.  
  12530. Grant
  12531. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12532.  
  12533. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DUP1048 Date: 09/25/89
  12534. From: JODY IRISH                                            Time: 08:17 pm
  12535.   To: ALL                                                   (Read 93 times)
  12536. Subj: TURBO-C CRUIT
  12537.  
  12538. Hello,
  12539.       I have trying to teach myself Turbo-C for the last year or so...
  12540. Would enjoy experiences and converse of others who tried the same.  I
  12541. currently use ver 1.5 and am known for bangin' my forehead on objects,
  12542. from styrofoam insulated walls to concrete blocks, have dented fenders,
  12543. but not engine blocks!  Am willing to share anything I've learned.
  12544. jli
  12545. ---------------
  12546. Following thread
  12547.  
  12548. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DVQ1696 Date: 09/26/89
  12549. From: GRANT ELLSWORTH (Leader)                              Time: 09:28 pm
  12550.   To: JODY IRISH (Rcvd)                                     (Read 92 times)
  12551. Subj: R: TURBO-C CRUIT
  12552.  
  12553. Jody, Like a lot of others here in this topic/conference, I taught myself
  12554. C using Turbo C (and a couple of other compilers a little later).  Maybe
  12555. you should begin by stating what base you were starting from - e.g.:
  12556.  
  12557. 1.  Previous work with which programming tools/languages
  12558. 2.  How long and doing what kind of hobby or pro-programming
  12559.  
  12560. Also, you might want to tell us what you are finding the most confounding
  12561. in learning/using C, Turbo C, etc..
  12562.  
  12563. Somewhere back in Feb/Mar., we had a short discussion going on here about
  12564. the problems of learing C - as a 2nd (or 3rd, etc.) programming language
  12565. vs as the very first programming language.  The consensus seemed to be
  12566. that learning C as the very first programming language was an invitation
  12567. to frustration city.  Some even thought that prior exposure to, if not
  12568. extensive work with, some other compiled block-structured language like
  12569. PASCAL or PL/I (for IBM 370 Mainframers) was highly desirable, if not
  12570. necessary.  One person wrote that he learned C only after some work with
  12571. dBASE III(?) and found it a very frustrating journey --- but he wrote that
  12572. he finally got the hang of it.
  12573.  
  12574. For my part, my programming "mother toungue" is mainframe assembler and C
  12575. was the 1st so-called "Higher Order Language" I took seriously.  However I
  12576. did have some prior exposure to PASCAL and its ancestor, ALGOL 60 -- a
  12577. long time before.    grant
  12578. ---------------
  12579. ** Current thread: TURBO-C CRUIT
  12580.  
  12581. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DVR2726 Date: 09/26/89
  12582. From: JODY IRISH                                            Time: 10:45 pm
  12583.   To: GRANT ELLSWORTH (Rcvd)                                (Read 91 times)
  12584. Subj: R: TURBO-C CRUIT
  12585.  
  12586. Grant,
  12587.        Thanks for a welcome!  I am not a programmer by trade, just
  12588. curiosity.  I learned BASIC waaaaaayyyyyy back in high school, then
  12589. fortran, but forgot most all of it.  Tried to self-teach myself Turbo
  12590. Pascal, but really found myself hosed up with structured programming.
  12591. I didn't understand the concept, but upon reading about Turbo-C while
  12592. watching a self-taught peer of mine (and kinda mentor/tutor), I started
  12593. figuring it out.  What I found most helpful was pull-down menus and being
  12594. able to read the include files, once I learned what they actually were!
  12595.  
  12596. I am going to upload a small password program tonite (soon).  It's one of
  12597. my first lessons in curiosity-killed-the-cat!  At first, it re-wrote the
  12598. boot track of drive c: to the near last track (605 on my st-225), then if
  12599. the correct password given, wrote it back to finish the boot... BUT...
  12600. After performing several lowlevel formats, I scrapped that idea: TOOOOO
  12601. DANGEROUS!!!  So it just leaves you with a red screen.  I am leaving only
  12602. the source code for all to use, free material.  Will this create any
  12603. hassles?  I hope no greedy people try to profit!  I figure it's worth
  12604. about $.25 myself!!!
  12605.  
  12606. Again, thanks for welcoming me, am very interested in C and sharing
  12607. experiences and problems.
  12608. From: Jody L. Irish, I.M. Computing
  12609. ---------------
  12610. ** Current thread: TURBO-C CRUIT
  12611.  
  12612. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWJ3303 Date: 09/27/89
  12613. From: KEN HOPKINSON                                         Time: 03:55 pm
  12614.   To: JODY IRISH (Rcvd)                                     (Read 95 times)
  12615. Subj: R: TURBO-C CRUIT
  12616.  
  12617. Hi Jody,
  12618.      One program you might want to look at for learning C is CROBOT in the
  12619. mahoney collection. It isn't really that complicated when you look at what
  12620. you can use, but its kind of fun to see how close you can make your robot
  12621. into a thinking machine that'll wipe everyone else out.
  12622.  
  12623. ken
  12624. ---------------
  12625. ** Current thread: TURBO-C CRUIT
  12626.  
  12627. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWQ2127 Date: 09/27/89
  12628. From: JODY IRISH                                            Time: 09:35 pm
  12629.   To: KEN HOPKINSON (Rcvd)                                  (Read 91 times)
  12630. Subj: R: TURBO-C CRUIT
  12631.  
  12632. Thanks... I'll look for it!
  12633. ---------------
  12634. ** Current thread: TURBO-C CRUIT
  12635.  
  12636. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWQ2486 Date: 09/27/89
  12637. From: JODY IRISH                                            Time: 09:41 pm
  12638.   To: GRANT ELLSWORTH (Rcvd)                                (Read 91 times)
  12639. Subj: R: TURBO-C CRUIT
  12640.  
  12641. Grant,
  12642.       Thanks...  I did find that I really like the freedom of C.  I had
  12643. been pondering about C++, but may wait 'til I get better at plain ol' C.
  12644. I have found that C really doesn't care what you tell it to do, as long as
  12645. it's spelled right!  That's good, as I rarely write any orthodox code!
  12646.     Last nite I uploaded passwrd.zip... It's not the greatest, hardly!!!
  12647. My next project will probably be windowing or file handling? I dunno??
  12648. jli
  12649. >>>>>>>>>>>>>>>>>>>>>> Last Message In Thread <<<<<<<<<<<<<<<<<<<<<<
  12650.  
  12651. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DVR3589 Date: 09/26/89
  12652. From: JODY IRISH                                            Time: 10:59 pm
  12653.   To: ALL                                                   (Read 90 times)
  12654. Subj: PASSWORD.C
  12655.  
  12656. Hello everybody,
  12657.     You may have already written a better program, but I'm kinda proud of
  12658. this small program, as it's the first one I actually thought of and wrote.
  12659. After many failures and re-tries, I got something to work!!!
  12660.  
  12661.      The file is called PASSWRD.ZIP.  It should be somewhere in Bob's
  12662. collection under programming support or language support???  It was
  12663. written on turbo-c 1.5, but should be easy to convert.  The .EXE file
  12664. should be about 9K or so, it's not resident, and I access it in my
  12665. autoexec.bat on the hard drive.  It's free to all... please don't sell it,
  12666. just pass it around and don't lay claim to it!
  12667.  
  12668.      There is a readme file included in the zip-file to explain further,
  12669. and comments in the source.
  12670.  
  12671. From: Jody L. Irish, I.M. Computing
  12672. ---------------
  12673.  
  12674. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWK1312 Date: 09/27/89
  12675. From: STEVEN SCHULZ                                         Time: 04:21 pm
  12676.   To: ALL                                                   (Read 101 times)
  12677. Subj: MEMORY AVAILABLE
  12678.  
  12679. I'm using Microsoft "C" 5.1 and was wondering if there is a way to check
  12680. how much memory is available.  I would like to use this from within my
  12681. program after I have already done a series of malloc()'s.  I'm only
  12682. interested in conventional memory, but it has to be all the available
  12683. free memory not just the memory available in the default data segment.
  12684. ---------------
  12685. Following thread
  12686.  
  12687. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWL3457 Date: 09/27/89
  12688. From: GRANT ELLSWORTH (Leader)                              Time: 05:57 pm
  12689.   To: STEVEN SCHULZ (Rcvd)                                  (Read 99 times)
  12690. Subj: R: MEMORY AVAILABLE
  12691.  
  12692. There should be a "memavail()" type of function in your C library.  I
  12693. don't remember the MSC function name right now, but I do remember being
  12694. able to use a function name directly when I did a port from TC 1.5 to
  12695. MSC5.x several months ago.  Grant
  12696. ---------------
  12697. ** Current thread: MEMORY AVAILABLE
  12698.  
  12699. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DWM2166 Date: 09/27/89
  12700. From: JOE VINCENT                                           Time: 06:36 pm
  12701.   To: GRANT ELLSWORTH (Rcvd)                                (Read 99 times)
  12702. Subj: R: MEMORY AVAILABLE
  12703.  
  12704. Message CC'd to:
  12705.      GRANT ELLSWORTH
  12706.      STEVEN SCHULZ
  12707.  
  12708. >There should be a "memavail()" type of function in your C library.  I
  12709. >don't remember the MSC function name right now, but I do remember being
  12710.  
  12711. Grant, you're thinking of the "_memavl" function, but that one only
  12712. returns the memory available in the default data segment and Steve wanted
  12713. total memory available.  The only thing I can think of right off hand is a
  12714. kludge: determine the total memory USED and subtract that from the total
  12715. memory in the machine, obtained using the "_bios_memsize" function.
  12716.  
  12717.      -=≡{JOE}≡=- (tm)
  12718. ---------------
  12719. ** Current thread: MEMORY AVAILABLE
  12720.  
  12721. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DXC2085 Date: 09/28/89
  12722. From: STEVEN SCHULZ                                         Time: 08:34 am
  12723.   To: GRANT ELLSWORTH (Rcvd)                                (Read 95 times)
  12724. Subj: R: MEMORY AVAILABLE
  12725.  
  12726. There is a _memavl() function in MSC's library but it only checks the
  12727. memory available in the default data segment, not across all segments,
  12728. which is what I really need.  I don't think there are any functions
  12729. supplied that do this, unless I'm missing something??
  12730. ---------------
  12731. ** Current thread: MEMORY AVAILABLE
  12732.  
  12733. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DXC2459 Date: 09/28/89
  12734. From: STEVEN SCHULZ                                         Time: 08:40 am
  12735.   To: JOE VINCENT (Rcvd)                                    (Read 100 times)
  12736. Subj: R: MEMORY AVAILABLE
  12737.  
  12738. Joe, I also seem to remember reading somewhere about a routine to do what
  12739. I need.  Basically you call malloc() and ask for say 10,000 bytes.  If
  12740. NULL is not returned, do it again.  If NULL was returned, reduce the
  12741. memory block asked for in half and try again.  This process would continue
  12742. until no more memory could be malloced.
  12743.  
  12744. I'm going to do some digging to see if I can find the algorithm, otherwise
  12745. I'll try writing my own.  Maybe Turbo C has a function to check on all
  12746. available free memory, as Grant seems to think.  Thanks.
  12747. ---------------
  12748. ** Current thread: MEMORY AVAILABLE
  12749.  
  12750. Conf: PROGRAMMING Topic: C LANGUAGE           Ref: 2DXN0223 Date: 09/28/89
  12751. From: JOE VINCENT                                           Time: 07:03 pm
  12752.   To: STEVEN SCHULZ (Rcvd)                                  (Read 92 times)
  12753. Subj: R: MEMORY AVAILABLE
  12754.  
  12755. >Joe, I also seem to remember reading somewhere about a routine to do what
  12756. >I need.  Basically you call malloc() and ask for say 10,000 bytes.  If
  12757. >NULL is not returned, do it again.  If NULL was returned, reduce the
  12758. >memory block asked for in half and try again.  This process would continue
  12759. >until no more memory could be malloced.
  12760.  
  12761. Steve, doesn't "malloc" work against the heap rather than all memory?  In
  12762. any event, although the technique might be made to work in some form, it
  12763. sure seems inelegant.
  12764.  
  12765.      -=≡{JOE}≡=- (tm)
  12766. ---------------
  12767. ** Current thread: MEMORY AVAILABLE
  12768.  
  12769. >> The message system is temporarily unavailable.
  12770. >> Please try back a little later.
  12771.  
  12772. (301 minutes left) TOP (SBHFMREALWXG, ?=HELP) -> 
  12773. >>> Inactivity warning:  One minute to automatic logoff!
  12774.